refactor(报表统计权限管理): 修改开源版权限中报表统计权限不展示的问题,项目管理员、项目成员默认赋予保存和另存为的权限

修改开源版权限中报表统计权限不展示的问题,项目管理员、项目成员默认赋予保存和另存为的权限
This commit is contained in:
song-tianyang 2021-09-28 14:56:42 +08:00 committed by song-tianyang
parent d5df2c39a4
commit 1786f96afc
2 changed files with 20 additions and 6 deletions

View File

@ -16,3 +16,18 @@ alter table test_plan modify principal varchar(50) null comment 'Plan principal'
ALTER TABLE test_case_review_test_case ADD `order` bigint(20) NOT NULL COMMENT '自定义排序间隔5000';
-- 报表默认权限插入
-- 项目管理员
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'project_admin', 'PROJECT_REPORT_ANALYSIS:READ+UPDATE', 'PROJECT_REPORT_ANALYSIS');
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'project_admin', 'PROJECT_REPORT_ANALYSIS:READ+CREATE', 'PROJECT_REPORT_ANALYSIS');
-- 项目成员
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'project_member', 'PROJECT_REPORT_ANALYSIS:READ+UPDATE', 'PROJECT_REPORT_ANALYSIS');
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'project_member', 'PROJECT_REPORT_ANALYSIS:READ+CREATE', 'PROJECT_REPORT_ANALYSIS');

View File

@ -809,25 +809,25 @@
"id": "PROJECT_REPORT_ANALYSIS:READ",
"name": "查看",
"resourceId": "PROJECT_REPORT_ANALYSIS",
"license": true
"license": false
},
{
"id": "PROJECT_REPORT_ANALYSIS:READ+EXPORT",
"name": "导出",
"resourceId": "PROJECT_REPORT_ANALYSIS",
"license": true
"license": false
},
{
"id": "PROJECT_REPORT_ANALYSIS:READ+UPDATE",
"name": "保存",
"resourceId": "PROJECT_REPORT_ANALYSIS",
"license": true
"license": false
},
{
"id": "PROJECT_REPORT_ANALYSIS:READ+CREATE",
"name": "另存为",
"resourceId": "PROJECT_REPORT_ANALYSIS",
"license": true
"license": false
}
],
"resource": [
@ -969,8 +969,7 @@
},
{
"id": "PROJECT_REPORT_ANALYSIS",
"name": "报表",
"license": true
"name": "报表"
}
]
}