fix(系统设置): 有相关权限的用户点击成员菜单跳转至个人信息页

--bug=1018138 --user=李玉号 [项目设置]用户权限只包括接口测试模块,用户登录后在工作空间-成员页面跳转至个人信息页
https://www.tapd.cn/55049933/s/1263816
This commit is contained in:
shiziyuan9527 2022-10-17 14:00:53 +08:00 committed by lyh
parent 21670ee179
commit 25a2bc1cc2
3 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ public class GroupController {
}
@PostMapping("/get")
@RequiresPermissions(value = {PermissionConstants.SYSTEM_GROUP_READ, PermissionConstants.SYSTEM_USER_READ}, logical = Logical.OR)
@RequiresPermissions(value = {PermissionConstants.SYSTEM_GROUP_READ, PermissionConstants.SYSTEM_USER_READ, PermissionConstants.WORKSPACE_USER_READ}, logical = Logical.OR)
public List<Group> getGroupByType(@RequestBody EditGroupRequest request) {
return groupService.getGroupByType(request);
}

View File

@ -59,7 +59,7 @@ public class GroupController {
}
@PostMapping("/get")
@RequiresPermissions(value = {PermissionConstants.SYSTEM_GROUP_READ, PermissionConstants.SYSTEM_USER_READ}, logical = Logical.OR)
@RequiresPermissions(value = {PermissionConstants.SYSTEM_GROUP_READ, PermissionConstants.SYSTEM_USER_READ, PermissionConstants.WORKSPACE_USER_READ}, logical = Logical.OR)
public List<Group> getGroupByType(@RequestBody EditGroupRequest request) {
return groupService.getGroupByType(request);
}

View File

@ -61,7 +61,7 @@ export default {
workspaceTemplate: getMenus('workspaceTemplate'),
systemPermission: [
'SYSTEM_USER:READ', 'SYSTEM_ORGANIZATION:READ', 'SYSTEM_GROUP:READ',
'ORGANIZATION_GROUP:READ', 'SYSTEM_WORKSPACE:READ', 'SYSTEM_TEST_POOL:READ',
'SYSTEM_WORKSPACE:READ', 'SYSTEM_TEST_POOL:READ',
'SYSTEM_SETTING:READ', 'SYSTEM_QUOTA:READ', 'SYSTEM_AUTH:READ'
],
workspacePermission: ['WORKSPACE_USER:READ', 'WORKSPACE_SERVICE:READ',