mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #573 from airwoodix/fix-app-removeaccess-set-add
[fix] app_removeaccess call set.add
This commit is contained in:
commit
047947d820
1 changed files with 1 additions and 1 deletions
|
@ -1036,7 +1036,7 @@ def app_removeaccess(auth, apps, users=[]):
|
||||||
else:
|
else:
|
||||||
for allowed_user in user_list(auth)['users'].keys():
|
for allowed_user in user_list(auth)['users'].keys():
|
||||||
if allowed_user not in users:
|
if allowed_user not in users:
|
||||||
allowed_users.append(allowed_user)
|
allowed_users.add(allowed_user)
|
||||||
|
|
||||||
operation_logger.related_to += [ ('user', x) for x in allowed_users ]
|
operation_logger.related_to += [ ('user', x) for x in allowed_users ]
|
||||||
operation_logger.flush()
|
operation_logger.flush()
|
||||||
|
|
Loading…
Add table
Reference in a new issue