From 3bc3c32767ce4a934b7a3e751a8c7f161df9c95b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 17 Apr 2021 03:34:17 +0200 Subject: [PATCH] Do not allow to grant ssh/sftp perms to all_users (this is not allowed by the core anyway) --- app/src/views/group/GroupList.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/views/group/GroupList.vue b/app/src/views/group/GroupList.vue index 32315add..212100da 100644 --- a/app/src/views/group/GroupList.vue +++ b/app/src/views/group/GroupList.vue @@ -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 }