From 4d0deea5638d699491f8f2b0955698a00b60592a Mon Sep 17 00:00:00 2001 From: airwoodix Date: Sat, 17 Nov 2018 23:27:33 +0100 Subject: [PATCH] Fix app_addaccess behaviour when 'allowed_users' is initially empty --- src/yunohost/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 8b3ffecdc..e26700c49 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -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: