fix(项目设置): 补充项目用户组遗漏的权限

--bug=1041491 --user=宋昌昌 【项目关联】项目成员(系统内置),没有给用户组、消息管理、应用设置的查询权限 https://www.tapd.cn/55049933/s/1524208
This commit is contained in:
song-cc-rock 2024-05-31 14:21:17 +08:00 committed by 刘瑞斌
parent 5bfa7f9231
commit 6308e2a5a8
2 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,13 @@
-- set innodb lock wait timeout
SET SESSION innodb_lock_wait_timeout = 7200;
-- 项目成员权限初始化(遗漏)
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_GROUP:READ');
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_MESSAGE:READ');
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_APPLICATION_TEST_PLAN:READ');
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_APPLICATION_API:READ');
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_APPLICATION_CASE:READ');
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_APPLICATION_BUG:READ');
-- set innodb lock wait timeout to default
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -137,7 +137,6 @@
{ {
"id": "PROJECT_APPLICATION", "id": "PROJECT_APPLICATION",
"name": "permission.project_application.name", "name": "permission.project_application.name",
"license": true,
"permissions": [ "permissions": [
{ {
"id": "PROJECT_APPLICATION_TEST_PLAN:READ", "id": "PROJECT_APPLICATION_TEST_PLAN:READ",
@ -198,7 +197,6 @@
{ {
"id": "PROJECT_LOG", "id": "PROJECT_LOG",
"name": "permission.project_log.name", "name": "permission.project_log.name",
"license": true,
"permissions": [ "permissions": [
{ {
"id": "PROJECT_LOG:READ" "id": "PROJECT_LOG:READ"