fix(系统设置): 增加工作空间环境配置的权限
--bug=1018493 --user=李玉号 【系统设置】用户组和权限-工作空间的权限模型删掉“上传jar包”,缺少“环境配置”权限设置 https://www.tapd.cn/55049933/s/1270997
This commit is contained in:
parent
26171456ba
commit
e02f599081
|
@ -2589,6 +2589,7 @@ const message = {
|
||||||
edit: "EDIT",
|
edit: "EDIT",
|
||||||
delete: "DELETE",
|
delete: "DELETE",
|
||||||
upload_jar: "UPLOAD JAR",
|
upload_jar: "UPLOAD JAR",
|
||||||
|
environment_config: "ENVIRONMENT CONFIG",
|
||||||
},
|
},
|
||||||
workspace_project_environment: {
|
workspace_project_environment: {
|
||||||
name: "Environment",
|
name: "Environment",
|
||||||
|
|
|
@ -2597,6 +2597,7 @@ const message = {
|
||||||
edit: "编辑项目",
|
edit: "编辑项目",
|
||||||
delete: "删除项目",
|
delete: "删除项目",
|
||||||
upload_jar: "上传jar包",
|
upload_jar: "上传jar包",
|
||||||
|
environment_config: "环境配置",
|
||||||
},
|
},
|
||||||
workspace_project_environment: {
|
workspace_project_environment: {
|
||||||
name: "环境设置",
|
name: "环境设置",
|
||||||
|
|
|
@ -2594,6 +2594,7 @@ const message = {
|
||||||
edit: "編輯項目",
|
edit: "編輯項目",
|
||||||
delete: "刪除項目",
|
delete: "刪除項目",
|
||||||
upload_jar: "上傳jar包",
|
upload_jar: "上傳jar包",
|
||||||
|
environment_config: "環境配置",
|
||||||
},
|
},
|
||||||
workspace_project_environment: {
|
workspace_project_environment: {
|
||||||
name: "環境設置",
|
name: "環境設置",
|
||||||
|
|
|
@ -11,4 +11,9 @@ INSERT INTO system_parameter (param_key, param_value, type, sort) VALUES ('meter
|
||||||
INSERT INTO system_parameter (param_key, param_value, type, sort) VALUES ('metersphere.module.setting', 'ENABLE', 'text', 1);
|
INSERT INTO system_parameter (param_key, param_value, type, sort) VALUES ('metersphere.module.setting', 'ENABLE', 'text', 1);
|
||||||
INSERT INTO system_parameter (param_key, param_value, type, sort) VALUES ('base.grid.concurrency', '8', 'text', 1);
|
INSERT INTO system_parameter (param_key, param_value, type, sort) VALUES ('base.grid.concurrency', '8', 'text', 1);
|
||||||
|
|
||||||
|
DELETE FROM user_group_permission WHERE permission_id = 'WORKSPACE_PROJECT_MANAGER:READ+UPLOAD_JAR';
|
||||||
|
|
||||||
|
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
|
||||||
|
SELECT UUID(), id, 'WORKSPACE_PROJECT_MANAGER:READ+ENVIRONMENT_CONFIG', 'WORKSPACE_PROJECT_MANAGER'
|
||||||
|
FROM `group`
|
||||||
|
WHERE type = 'WORKSPACE';
|
||||||
|
|
|
@ -181,8 +181,8 @@
|
||||||
"resourceId": "WORKSPACE_PROJECT_MANAGER"
|
"resourceId": "WORKSPACE_PROJECT_MANAGER"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "WORKSPACE_PROJECT_MANAGER:READ+UPLOAD_JAR",
|
"id": "WORKSPACE_PROJECT_MANAGER:READ+ENVIRONMENT_CONFIG",
|
||||||
"name": "permission.workspace_project_manager.upload_jar",
|
"name": "permission.workspace_project_manager.environment_config",
|
||||||
"resourceId": "WORKSPACE_PROJECT_MANAGER"
|
"resourceId": "WORKSPACE_PROJECT_MANAGER"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
@deleteClick="handleDelete(scope.row)">
|
@deleteClick="handleDelete(scope.row)">
|
||||||
<template v-slot:behind>
|
<template v-slot:behind>
|
||||||
<ms-table-operator-button
|
<ms-table-operator-button
|
||||||
v-permission="['WORKSPACE_PROJECT_MANAGER:READ+EDIT']"
|
v-permission="['WORKSPACE_PROJECT_MANAGER:READ+ENVIRONMENT_CONFIG']"
|
||||||
:tip="$t('api_test.environment.environment_config')" icon="el-icon-setting"
|
:tip="$t('api_test.environment.environment_config')" icon="el-icon-setting"
|
||||||
type="info" @exec="openEnvironmentConfig(scope.row)"/>
|
type="info" @exec="openEnvironmentConfig(scope.row)"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue