mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Do not allow to grant ssh/sftp perms to all_users (this is not allowed by the core anyway)
This commit is contained in:
parent
9e70259899
commit
3bc3c32767
1 changed files with 7 additions and 0 deletions
|
@ -182,6 +182,13 @@ export default {
|
|||
}).map(({ id }) => permsDict[id].label)
|
||||
}
|
||||
|
||||
if (groupName === 'all_users') {
|
||||
// Forbid to add ssh and sftp permission on group `all_users`
|
||||
group.disabledItems = permissions.filter(({ id }) => {
|
||||
return ['ssh.main', 'sftp.main'].includes(id)
|
||||
}).map(({ id }) => permsDict[id].label)
|
||||
}
|
||||
|
||||
primaryGroups[groupName] = group
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue