diff --git a/backend/src/main/resources/db/migration/V99__v1.15_release.sql b/backend/src/main/resources/db/migration/V99__v1.15_release.sql index de700e9307..e14a7d1232 100644 --- a/backend/src/main/resources/db/migration/V99__v1.15_release.sql +++ b/backend/src/main/resources/db/migration/V99__v1.15_release.sql @@ -1,19 +1,23 @@ -CREATE TABLE `issue_follow` ( - `issue_id` varchar(50) DEFAULT NULL, - `follow_id` varchar(50) DEFAULT NULL, - UNIQUE KEY `issue_follow_pk` (`issue_id`,`follow_id`), - KEY `issue_follow_follow_id_index` (`follow_id`), - KEY `issue_follow_issue_id_index` (`issue_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +CREATE TABLE `issue_follow` +( + `issue_id` varchar(50) DEFAULT NULL, + `follow_id` varchar(50) DEFAULT NULL, + UNIQUE KEY `issue_follow_pk` (`issue_id`, `follow_id`), + KEY `issue_follow_follow_id_index` (`follow_id`), + KEY `issue_follow_issue_id_index` (`issue_id`) +) ENGINE = InnoDB + DEFAULT CHARSET = utf8mb4; -- group -insert into user_group_permission (id, group_id, permission_id, module_id) -values (UUID(), 'project_group', 'PROJECT_GROUP:READ', 'PROJECT_GROUP'); -insert into user_group_permission (id, group_id, permission_id, module_id) -values (UUID(), 'project_group', 'PROJECT_GROUP:READ+CREATE', 'PROJECT_GROUP'); -insert into user_group_permission (id, group_id, permission_id, module_id) -values (UUID(), 'project_group', 'PROJECT_GROUP:READ+EDIT', 'PROJECT_GROUP'); -insert into user_group_permission (id, group_id, permission_id, module_id) -values (UUID(), 'project_group', 'PROJECT_GROUP:READ+DELETE', 'PROJECT_GROUP'); +INSERT INTO user_group_permission (id, group_id, permission_id, module_id) +VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ', 'PROJECT_GROUP'); +INSERT INTO user_group_permission (id, group_id, permission_id, module_id) +VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ+CREATE', 'PROJECT_GROUP'); +INSERT INTO user_group_permission (id, group_id, permission_id, module_id) +VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ+EDIT', 'PROJECT_GROUP'); +INSERT INTO user_group_permission (id, group_id, permission_id, module_id) +VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ+DELETE', 'PROJECT_GROUP'); +INSERT INTO user_group_permission (id, group_id, permission_id, module_id) +VALUES (UUID(), 'project_group', 'PROJECT_GROUP:READ+SETTING_PERMISSION', 'PROJECT_GROUP'); diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json index 243a048ac0..0bc45b5462 100644 --- a/backend/src/main/resources/permission.json +++ b/backend/src/main/resources/permission.json @@ -305,6 +305,11 @@ "name": "删除用户组与权限", "resourceId": "PROJECT_GROUP" }, + { + "id": "PROJECT_GROUP:READ+SETTING_PERMISSION", + "name": "设置权限", + "resourceId": "PROJECT_GROUP" + }, { "id": "PROJECT_MANAGER:READ", "name": "查询项目", diff --git a/frontend/src/business/components/project/menu/UserGroup.vue b/frontend/src/business/components/project/menu/UserGroup.vue index 0ca5fb7a7a..79feffbd1d 100644 --- a/frontend/src/business/components/project/menu/UserGroup.vue +++ b/frontend/src/business/components/project/menu/UserGroup.vue @@ -45,13 +45,13 @@