fix(插件管理): 默认插件管理增加系统管理员权限

This commit is contained in:
fit2-zhao 2021-11-30 13:44:19 +08:00 committed by fit2-zhao
parent 0b157a3f54
commit 1b5c129b3b
1 changed files with 7 additions and 1 deletions

View File

@ -11,5 +11,11 @@ values (UUID(), 'ws_admin', 'WORKSPACE_PROJECT_ENVIRONMENT:READ+DELETE_GROUP', '
delete delete
from user_group_permission from user_group_permission
where permission_id = 'WORKSPACE_TEMPLATE:READ+REPORT_TEMPLATE'; where permission_id = 'WORKSPACE_TEMPLATE:READ+REPORT_TEMPLATE';
-- admin
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'admin', 'SYSTEM_PLUGIN:READ', 'SYSTEM_PLUGIN');
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'admin', 'SYSTEM_PLUGIN:UPLOAD', 'SYSTEM_PLUGIN');
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'admin', 'SYSTEM_PLUGIN:DEL', 'SYSTEM_PLUGIN');