mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #575 from airwoodix/fix-addaccess-ghost-user
Fix app_addaccess behaviour when 'allowed_users' is initially empty
This commit is contained in:
commit
0e7aa90406
1 changed files with 1 additions and 1 deletions
|
@ -965,7 +965,7 @@ def app_addaccess(auth, apps, users=[]):
|
||||||
operation_logger.start()
|
operation_logger.start()
|
||||||
|
|
||||||
allowed_users = set()
|
allowed_users = set()
|
||||||
if 'allowed_users' in app_settings:
|
if 'allowed_users' in app_settings and app_settings['allowed_users']:
|
||||||
allowed_users = set(app_settings['allowed_users'].split(','))
|
allowed_users = set(app_settings['allowed_users'].split(','))
|
||||||
|
|
||||||
for allowed_user in users:
|
for allowed_user in users:
|
||||||
|
|
Loading…
Add table
Reference in a new issue