From c91ec1470aa2b8a94d152b5e79f0add5ae6efdfd Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Mon, 22 Jul 2024 15:04:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1043879 --user=宋天阳 【系统设置】系统-用户-邮箱邀请-用户无「用户组」查询权限,也应该正常邀请用户 https://www.tapd.cn/55049933/s/1552104 --- .../java/io/metersphere/system/controller/UserController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/UserController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/UserController.java index 83eb0a7116..9b6cd211ad 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/UserController.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/UserController.java @@ -128,7 +128,7 @@ public class UserController { @GetMapping("/get/global/system/role") @Operation(summary = "系统设置-系统-用户-查找系统级用户组") - @RequiresPermissions(PermissionConstants.SYSTEM_USER_ROLE_READ) + @RequiresPermissions(value = {PermissionConstants.SYSTEM_USER_ROLE_READ, PermissionConstants.SYSTEM_USER_INVITE}, logical = Logical.OR) public List getGlobalSystemRole() { return globalUserRoleService.getGlobalSystemRoleList(); }