From ae3badda9eb02c52dcc0440528c8e46ca8d889d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 6 Apr 2020 17:47:07 +0200 Subject: [PATCH] Fix _update_ldap_group_permission --- src/yunohost/permission.py | 2 ++ 1 file changed, 2 insertions(+) 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)