mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix permission sychronization
This commit is contained in:
parent
2c57b6850c
commit
84fe23786c
1 changed files with 2 additions and 1 deletions
|
@ -484,8 +484,9 @@ def permission_sync_to_user(force=False):
|
||||||
for per in ldap.search('ou=permission,dc=yunohost,dc=org',
|
for per in ldap.search('ou=permission,dc=yunohost,dc=org',
|
||||||
'(objectclass=permissionYnh)',
|
'(objectclass=permissionYnh)',
|
||||||
['cn', 'inheritPermission', 'groupPermission', 'memberUid']):
|
['cn', 'inheritPermission', 'groupPermission', 'memberUid']):
|
||||||
|
print(per)
|
||||||
if 'groupPermission' not in per:
|
if 'groupPermission' not in per:
|
||||||
continue
|
per['groupPermission'] = []
|
||||||
user_permission = set()
|
user_permission = set()
|
||||||
for group in per['groupPermission']:
|
for group in per['groupPermission']:
|
||||||
group = group.split("=")[1].split(",")[0]
|
group = group.split("=")[1].split(",")[0]
|
||||||
|
|
Loading…
Add table
Reference in a new issue