From 569304aa4bdb0f3691bc40e4dcd4e49de126ac11 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Thu, 9 Apr 2015 11:00:38 +0000 Subject: [PATCH] Revert "[fix] Allow empty users argument in app_add/removeaccess" This reverts commit a4ab551447eb29961eda2f025180be51f72860fa. --- data/actionsmap/yunohost.yml | 4 ++-- lib/yunohost/app.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/actionsmap/yunohost.yml b/data/actionsmap/yunohost.yml index 0ce25411..e20ce519 100644 --- a/data/actionsmap/yunohost.yml +++ b/data/actionsmap/yunohost.yml @@ -527,7 +527,7 @@ app: nargs: "+" -u: full: --users - nargs: "*" + nargs: "+" ### app_removeaccess() TODO: Write help removeaccess: @@ -541,7 +541,7 @@ app: nargs: "+" -u: full: --users - nargs: "*" + nargs: "+" ### app_clearaccess() clearaccess: diff --git a/lib/yunohost/app.py b/lib/yunohost/app.py index 7b71c20f..750eea7f 100644 --- a/lib/yunohost/app.py +++ b/lib/yunohost/app.py @@ -542,7 +542,7 @@ def app_remove(auth, app): msignals.display(m18n.n('app_removed', app), 'success') -def app_addaccess(auth, apps, users=[]): +def app_addaccess(auth, apps, users): """ Grant access right to users (everyone by default) @@ -597,7 +597,7 @@ def app_addaccess(auth, apps, users=[]): return { 'allowed_users': new_users.split(',') } -def app_removeaccess(auth, apps, users=[]): +def app_removeaccess(auth, apps, users): """ Revoke access right to users (everyone by default)