mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Improve label
This commit is contained in:
parent
af8773f767
commit
e36e5ea89c
2 changed files with 11 additions and 4 deletions
|
@ -74,7 +74,7 @@ depends_children:
|
|||
groupPermission:
|
||||
- "cn=all_users,ou=groups,dc=yunohost,dc=org"
|
||||
authHeader: "FALSE"
|
||||
label: "Mail"
|
||||
label: "E-mail"
|
||||
showTile: "FALSE"
|
||||
isProtected: "TRUE"
|
||||
cn=xmpp.main,ou=permission:
|
||||
|
|
|
@ -43,15 +43,22 @@ class MyMigration(Migration):
|
|||
app_setting(app, 'label', delete=True)
|
||||
|
||||
for permission in permission_list:
|
||||
if permission.split('.')[0] in SYSTEM_PERMS:
|
||||
if permission.split('.')[0] == 'mail':
|
||||
ldap.update('cn=%s,ou=permission' % permission, {
|
||||
'authHeader': ["FALSE"],
|
||||
'label': [permission.split('.')[0].title()],
|
||||
'label': 'E-mail',
|
||||
'showTile': ["FALSE"],
|
||||
'isProtected': ["TRUE"],
|
||||
})
|
||||
elif permission.split('.')[0] == 'xmpp':
|
||||
ldap.update('cn=%s,ou=permission' % permission, {
|
||||
'authHeader': ["FALSE"],
|
||||
'label': 'XMPP',
|
||||
'showTile': ["FALSE"],
|
||||
'isProtected': ["TRUE"],
|
||||
})
|
||||
else:
|
||||
label = labels[permission.split('.')[0]]
|
||||
label = labels[permission.split('.')[0]].title()
|
||||
|
||||
if permission.endswith(".main"):
|
||||
ldap.update('cn=%s,ou=permission' % permission, {
|
||||
|
|
Loading…
Add table
Reference in a new issue