From cfbd3dca004444626664da57d13fa13e94d70002 Mon Sep 17 00:00:00 2001 From: scienceasdf Date: Sat, 30 Jan 2021 03:17:30 +0800 Subject: [PATCH] Fix: in group edit rules, write scripts permission and write styles permission can be configured. (#2829) At present, the user that are not in the administrator group have no access to edit scripts and styles in page editor panel. This commit add configuration in group rule manage webpage so that users' permission on writing styles and writing scripts can be modified. --- client/components/admin/admin-groups-edit-rules.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/components/admin/admin-groups-edit-rules.vue b/client/components/admin/admin-groups-edit-rules.vue index 41364db6..89d97db4 100644 --- a/client/components/admin/admin-groups-edit-rules.vue +++ b/client/components/admin/admin-groups-edit-rules.vue @@ -222,6 +222,8 @@ export default { { text: 'Read / Use Assets', value: 'read:assets', icon: 'mdi-image-search-outline' }, { text: 'Upload Assets', value: 'write:assets', icon: 'mdi-image-plus' }, { text: 'Edit + Delete Assets', value: 'manage:assets', icon: 'mdi-image-size-select-large' }, + { text: 'Edit Scripts', value: 'write:scripts', icon: 'mdi-language-javascript' }, + { text: 'Edit Styles', value: 'write:styles', icon: 'mdi-language-css3' }, { text: 'Read Comments', value: 'read:comments', icon: 'mdi-comment-search-outline' }, { text: 'Create Comments', value: 'write:comments', icon: 'mdi-comment-plus-outline' }, { text: 'Edit + Delete Comments', value: 'manage:comments', icon: 'mdi-comment-remove-outline' }