diff --git a/src/yunohost/permission.py b/src/yunohost/permission.py index 2128f114d..858bee614 100644 --- a/src/yunohost/permission.py +++ b/src/yunohost/permission.py @@ -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)