From 23e3ef28be45538c2e7f582dd88f5b8ee566cb49 Mon Sep 17 00:00:00 2001 From: Jerome Lebleu Date: Sun, 30 Mar 2014 03:10:45 +0200 Subject: [PATCH] Fix user_list call in yunohost.app --- lib/yunohost/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/yunohost/app.py b/lib/yunohost/app.py index 4a4b3530..8884d788 100644 --- a/lib/yunohost/app.py +++ b/lib/yunohost/app.py @@ -534,7 +534,7 @@ def app_addaccess(apps, users): """ if not users: users = [] - for user in user_list()['users']: + for user in user_list(YunoHostLDAP())['users']: users.append(user['username']) if not isinstance(users, list): users = [users] @@ -610,7 +610,7 @@ def app_removeaccess(apps, users): new_users = new_users +','+ allowed_user else: new_users='' - for user in user_list()['users']: + for user in user_list(YunoHostLDAP())['users']: if user['username'] not in users: if new_users == '': new_users = user['username'] @@ -831,7 +831,7 @@ def app_ssowatconf(): domains = domain_list(YunoHostLDAP())['domains'] users = {} - for user in user_list()['users']: + for user in user_list(YunoHostLDAP())['users']: users[user['username']] = app_map(user=user['username']) skipped_urls = []