mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
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:
parent
c284954f8f
commit
587e902c12
2 changed files with 11 additions and 1 deletions
|
@ -318,6 +318,15 @@ user:
|
||||||
metavar: GROUP_OR_USER
|
metavar: GROUP_OR_USER
|
||||||
extra:
|
extra:
|
||||||
pattern: *pattern_username
|
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()
|
## user_permission_reset()
|
||||||
reset:
|
reset:
|
||||||
|
|
|
@ -775,10 +775,11 @@ def user_permission_list(short=False, full=False):
|
||||||
return yunohost.permission.user_permission_list(short, full)
|
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
|
import yunohost.permission
|
||||||
return yunohost.permission.user_permission_update(permission,
|
return yunohost.permission.user_permission_update(permission,
|
||||||
add=add, remove=remove,
|
add=add, remove=remove,
|
||||||
|
label=label, show_tile=show_tile,
|
||||||
sync_perm=sync_perm)
|
sync_perm=sync_perm)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue