Let's give the possiblity to the user to modify the tile and to show or drop the tile in the SSO

This commit is contained in:
Josué Tille 2020-03-30 17:41:25 +02:00
parent c284954f8f
commit 587e902c12
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 11 additions and 1 deletions

View file

@ -318,6 +318,15 @@ user:
metavar: GROUP_OR_USER
extra:
pattern: *pattern_username
-l:
full: --label
help: Label for this permission. This label will be shown on the SSO and in the admin
-s:
full: --show_tile
help: Define if a tile will be shown in the SSO
choices:
- 'True'
- 'False'
## user_permission_reset()
reset:

View file

@ -775,10 +775,11 @@ def user_permission_list(short=False, full=False):
return yunohost.permission.user_permission_list(short, full)
def user_permission_update(permission, add=None, remove=None, sync_perm=True):
def user_permission_update(permission, add=None, remove=None, label=None, show_tile=None, sync_perm=True):
import yunohost.permission
return yunohost.permission.user_permission_update(permission,
add=add, remove=remove,
label=label, show_tile=show_tile,
sync_perm=sync_perm)