mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix permission update
This commit is contained in:
parent
97c3a0fb9b
commit
8d3d055484
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ def user_permission_update(operation_logger, permission, add=None, remove=None,
|
||||||
raise YunohostError('permission_cannot_remove_all_users_while_visitors_allowed')
|
raise YunohostError('permission_cannot_remove_all_users_while_visitors_allowed')
|
||||||
|
|
||||||
# Don't update LDAP if we update exactly the same values
|
# Don't update LDAP if we update exactly the same values
|
||||||
if set(new_allowed_groups) == set(current_allowed_groups):
|
if set(new_allowed_groups) == set(current_allowed_groups) and protected is None:
|
||||||
logger.warning(m18n.n("permission_already_up_to_date"))
|
logger.warning(m18n.n("permission_already_up_to_date"))
|
||||||
return existing_permission
|
return existing_permission
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue