Fix _update_ldap_group_permission

This commit is contained in:
Josué Tille 2020-04-06 17:47:07 +02:00
parent 12d7bad16b
commit ae3badda9e
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -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)