fix(项目管理): 补充权限配置
This commit is contained in:
parent
1a7c1c2410
commit
339d9e9a2d
|
@ -67,6 +67,7 @@ INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'org_admin', 'ORGANIZATION_TEMPLATE:READ+ADD');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'org_admin', 'ORGANIZATION_TEMPLATE:READ+ADD');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'org_admin', 'ORGANIZATION_TEMPLATE:READ+UPDATE');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'org_admin', 'ORGANIZATION_TEMPLATE:READ+UPDATE');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'org_admin', 'ORGANIZATION_TEMPLATE:READ+DELETE');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'org_admin', 'ORGANIZATION_TEMPLATE:READ+DELETE');
|
||||||
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'org_admin', 'ORGANIZATION_TEMPLATE:READ+ENABLE');
|
||||||
|
|
||||||
-- 组织成员权限
|
-- 组织成员权限
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'org_member', 'ORGANIZATION_USER_ROLE:READ');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'org_member', 'ORGANIZATION_USER_ROLE:READ');
|
||||||
|
@ -100,6 +101,9 @@ INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_FILE_MANAGEMENT:READ+DOWNLOAD');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_FILE_MANAGEMENT:READ+DOWNLOAD');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_FILE_MANAGEMENT:READ+DELETE');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_FILE_MANAGEMENT:READ+DELETE');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_TEMPLATE:READ');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_TEMPLATE:READ');
|
||||||
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_TEMPLATE:READ+ADD');
|
||||||
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_TEMPLATE:READ+UPDATE');
|
||||||
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_TEMPLATE:READ+DELETE');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_MESSAGE:READ');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_MESSAGE:READ');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_MESSAGE:READ+ADD');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_MESSAGE:READ+ADD');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_MESSAGE:READ+UPDATE');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_MESSAGE:READ+UPDATE');
|
||||||
|
@ -132,6 +136,7 @@ INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'BUG:READ+ADD');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'BUG:READ+ADD');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'BUG:READ+UPDATE');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'BUG:READ+UPDATE');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'BUG:READ+DELETE');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'BUG:READ+DELETE');
|
||||||
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'BUG:READ+EXPORT');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_BUG:READ+EXPORT');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_BUG:READ+EXPORT');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_BASE_INFO:READ+UPDATE');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_BASE_INFO:READ+UPDATE');
|
||||||
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_API_DEBUG:READ');
|
INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_API_DEBUG:READ');
|
||||||
|
|
|
@ -117,3 +117,5 @@ bug.export.system.other.columns.create_time=创建时间
|
||||||
bug.export.system.other.columns.case_count=用例数
|
bug.export.system.other.columns.case_count=用例数
|
||||||
bug.export.system.other.columns.comment=评论
|
bug.export.system.other.columns.comment=评论
|
||||||
bug.export.system.other.columns.platform=所属平台
|
bug.export.system.other.columns.platform=所属平台
|
||||||
|
|
||||||
|
permission.bug.name=缺陷管理
|
|
@ -117,3 +117,4 @@ bug.export.system.other.columns.create_time=Create time
|
||||||
bug.export.system.other.columns.case_count=Case count
|
bug.export.system.other.columns.case_count=Case count
|
||||||
bug.export.system.other.columns.comment=Comment
|
bug.export.system.other.columns.comment=Comment
|
||||||
bug.export.system.other.columns.platform=Platform
|
bug.export.system.other.columns.platform=Platform
|
||||||
|
permission.bug.name=Bug management
|
|
@ -117,3 +117,4 @@ bug.export.system.other.columns.create_time=创建时间
|
||||||
bug.export.system.other.columns.case_count=用例数
|
bug.export.system.other.columns.case_count=用例数
|
||||||
bug.export.system.other.columns.comment=评论
|
bug.export.system.other.columns.comment=评论
|
||||||
bug.export.system.other.columns.platform=所属平台
|
bug.export.system.other.columns.platform=所属平台
|
||||||
|
permission.bug.name=缺陷管理
|
|
@ -118,3 +118,4 @@ bug.export.system.other.columns.create_time=創建時間
|
||||||
bug.export.system.other.columns.case_count=用例數
|
bug.export.system.other.columns.case_count=用例數
|
||||||
bug.export.system.other.columns.comment=評論
|
bug.export.system.other.columns.comment=評論
|
||||||
bug.export.system.other.columns.platform=所屬平台
|
bug.export.system.other.columns.platform=所屬平台
|
||||||
|
permission.bug.name=缺陷管理
|
|
@ -489,3 +489,4 @@ priority_is_null=用例等级不能为空
|
||||||
apikey_has_expired=ApiKey 已过期
|
apikey_has_expired=ApiKey 已过期
|
||||||
user_key.id.not_blank=ApiKey ID不能为空
|
user_key.id.not_blank=ApiKey ID不能为空
|
||||||
expire_time_not_null=过期时间不能为空
|
expire_time_not_null=过期时间不能为空
|
||||||
|
permission.organization.name=组织
|
|
@ -499,3 +499,4 @@ priority_is_null=Priority is null
|
||||||
apikey_has_expired=ApiKey has expired
|
apikey_has_expired=ApiKey has expired
|
||||||
user_key.id.not_blank=User key id can not blank
|
user_key.id.not_blank=User key id can not blank
|
||||||
expire_time_not_null=Expire time can not null
|
expire_time_not_null=Expire time can not null
|
||||||
|
permission.organization.name=Organization
|
|
@ -494,3 +494,4 @@ priority_is_null=用例等级不能为空
|
||||||
apikey_has_expired=ApiKey 已过期
|
apikey_has_expired=ApiKey 已过期
|
||||||
user_key.id.not_blank=ApiKey ID不能为空
|
user_key.id.not_blank=ApiKey ID不能为空
|
||||||
expire_time_not_null=过期时间不能为空
|
expire_time_not_null=过期时间不能为空
|
||||||
|
permission.organization.name=组织
|
|
@ -495,3 +495,4 @@ priority_is_null=優先級不能為空
|
||||||
apikey_has_expired=ApiKey 已過期
|
apikey_has_expired=ApiKey 已過期
|
||||||
user_key.id.not_blank=ApiKey ID不能为空
|
user_key.id.not_blank=ApiKey ID不能为空
|
||||||
expire_time_not_null=過期時間不能為空
|
expire_time_not_null=過期時間不能為空
|
||||||
|
permission.organization.name=組織
|
|
@ -91,6 +91,15 @@
|
||||||
"permissions": [
|
"permissions": [
|
||||||
{
|
{
|
||||||
"id": "PROJECT_TEMPLATE:READ"
|
"id": "PROJECT_TEMPLATE:READ"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "PROJECT_TEMPLATE:READ+ADD"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "PROJECT_TEMPLATE:READ+UPDATE"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "PROJECT_TEMPLATE:READ+DELETE"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue