mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix _update_ldap_group_permission
This commit is contained in:
parent
12d7bad16b
commit
ae3badda9e
1 changed files with 2 additions and 0 deletions
|
@ -562,6 +562,8 @@ def _update_ldap_group_permission(permission, allowed,
|
|||
if protected is None:
|
||||
protected = existing_permission["protected"]
|
||||
|
||||
allowed = [allowed] if not isinstance(allowed, list) else allowed
|
||||
|
||||
# Guarantee uniqueness of all values, which would otherwise make ldap.update angry.
|
||||
allowed = set(allowed)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue