mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] SSH or SFTP permission migrations
This commit is contained in:
parent
fb44bd1c66
commit
2b8f7e1494
1 changed files with 14 additions and 0 deletions
|
@ -59,6 +59,20 @@ class MyMigration(Migration):
|
|||
'showTile': ["FALSE"],
|
||||
'isProtected': ["TRUE"],
|
||||
})
|
||||
elif permission.split('.')[0] == 'ssh':
|
||||
ldap.update('cn=%s,ou=permission' % permission, {
|
||||
'authHeader': ["FALSE"],
|
||||
'label': ['SSH'],
|
||||
'showTile': ["FALSE"],
|
||||
'isProtected': ["TRUE"],
|
||||
})
|
||||
elif permission.split('.')[0] == 'sftp':
|
||||
ldap.update('cn=%s,ou=permission' % permission, {
|
||||
'authHeader': ["FALSE"],
|
||||
'label': ['SFTP'],
|
||||
'showTile': ["FALSE"],
|
||||
'isProtected': ["TRUE"],
|
||||
})
|
||||
else:
|
||||
label = labels[permission.split('.')[0]].title()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue