fix(系统设置): 权限精简
--bug=1043879 --user=宋天阳 【系统设置】系统-用户-邮箱邀请-用户无「用户组」查询权限,也应该正常邀请用户 https://www.tapd.cn/55049933/s/1552104
This commit is contained in:
parent
54a15ff7c3
commit
313613722e
|
@ -128,7 +128,7 @@ public class UserController {
|
|||
|
||||
@GetMapping("/get/global/system/role")
|
||||
@Operation(summary = "系统设置-系统-用户-查找系统级用户组")
|
||||
@RequiresPermissions(value = {PermissionConstants.SYSTEM_USER_ROLE_READ, PermissionConstants.SYSTEM_USER_INVITE}, logical = Logical.OR)
|
||||
@RequiresPermissions(PermissionConstants.SYSTEM_USER_READ)
|
||||
public List<UserSelectOption> getGlobalSystemRole() {
|
||||
return globalUserRoleService.getGlobalSystemRoleList();
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ public class UserControllerPermissionTests extends BaseTest {
|
|||
|
||||
|
||||
//校验权限:系统全局用户组获取
|
||||
this.requestGetPermissionTest(PermissionConstants.SYSTEM_USER_ROLE_READ, UserRequestUtils.URL_GET_GLOBAL_SYSTEM);
|
||||
this.requestGetPermissionTest(PermissionConstants.SYSTEM_USER_READ, UserRequestUtils.URL_GET_GLOBAL_SYSTEM);
|
||||
// 查看组织
|
||||
this.requestGetPermissionsTest(List.of(PermissionConstants.SYSTEM_USER_ROLE_READ, PermissionConstants.SYSTEM_ORGANIZATION_PROJECT_READ), UserRequestUtils.URL_GET_ORGANIZATION);
|
||||
//查看项目
|
||||
|
|
Loading…
Reference in New Issue