Revert "Revert "[fix] Allow empty users argument in app_add/removeaccess""

This reverts commit 569304aa4b.
This commit is contained in:
Jérôme Lebleu 2015-04-09 22:08:27 +02:00
parent 236a3306c5
commit 2c453b4996
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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)