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:
Alexandre Aubin 2018-11-22 19:06:30 +01:00 committed by GitHub
commit 0e7aa90406
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -965,7 +965,7 @@ def app_addaccess(auth, apps, users=[]):
operation_logger.start()
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(','))
for allowed_user in users: