mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Allow empty users argument in app_add/removeaccess
This commit is contained in:
parent
f6792d2d00
commit
a4ab551447
2 changed files with 4 additions and 4 deletions
|
@ -527,7 +527,7 @@ app:
|
||||||
nargs: "+"
|
nargs: "+"
|
||||||
-u:
|
-u:
|
||||||
full: --users
|
full: --users
|
||||||
nargs: "+"
|
nargs: "*"
|
||||||
|
|
||||||
### app_removeaccess() TODO: Write help
|
### app_removeaccess() TODO: Write help
|
||||||
removeaccess:
|
removeaccess:
|
||||||
|
@ -541,7 +541,7 @@ app:
|
||||||
nargs: "+"
|
nargs: "+"
|
||||||
-u:
|
-u:
|
||||||
full: --users
|
full: --users
|
||||||
nargs: "+"
|
nargs: "*"
|
||||||
|
|
||||||
### app_clearaccess()
|
### app_clearaccess()
|
||||||
clearaccess:
|
clearaccess:
|
||||||
|
|
|
@ -542,7 +542,7 @@ def app_remove(auth, app):
|
||||||
msignals.display(m18n.n('app_removed', app), 'success')
|
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)
|
Grant access right to users (everyone by default)
|
||||||
|
|
||||||
|
@ -597,7 +597,7 @@ def app_addaccess(auth, apps, users):
|
||||||
return { 'allowed_users': new_users.split(',') }
|
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)
|
Revoke access right to users (everyone by default)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue