fix: 修复权限相关问题
--bug=1025436 --user=刘瑞斌 【系统设置】系统管理员用户在项目管理中添加一个成员到项目中失败,提示403 https://www.tapd.cn/55049933/s/1362944
This commit is contained in:
parent
23d9aae4be
commit
d4b99bdd43
|
@ -52,7 +52,7 @@ public class PermissionConstants {
|
|||
public static final String WORKSPACE_PROJECT_MANAGER_READ_CREATE = "WORKSPACE_PROJECT_MANAGER:READ+CREATE";
|
||||
public static final String WORKSPACE_PROJECT_MANAGER_READ_EDIT = "WORKSPACE_PROJECT_MANAGER:READ+EDIT";
|
||||
public static final String WORKSPACE_PROJECT_MANAGER_READ_DELETE = "WORKSPACE_PROJECT_MANAGER:READ+DELETE";
|
||||
|
||||
public static final String WORKSPACE_PROJECT_MANAGER_READ_ADD_USER = "WORKSPACE_PROJECT_MANAGER:READ+ADD_USER";
|
||||
public static final String WORKSPACE_PROJECT_ENVIRONMENT_READ = "WORKSPACE_PROJECT_ENVIRONMENT:READ";
|
||||
public static final String WORKSPACE_PROJECT_ENVIRONMENT_READ_CREATE = "WORKSPACE_PROJECT_ENVIRONMENT:READ+CREATE";
|
||||
public static final String WORKSPACE_PROJECT_ENVIRONMENT_READ_EDIT = "WORKSPACE_PROJECT_ENVIRONMENT:READ+EDIT";
|
||||
|
|
|
@ -210,8 +210,7 @@ public class UserController {
|
|||
|
||||
@PostMapping("/project/member/add")
|
||||
@RequiresPermissions(value={PermissionConstants.PROJECT_USER_READ_CREATE,
|
||||
PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ_CREATE,
|
||||
PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ_EDIT}, logical = Logical.OR)
|
||||
PermissionConstants.WORKSPACE_PROJECT_MANAGER_READ_ADD_USER}, logical = Logical.OR)
|
||||
@MsAuditLog(module = OperLogModule.PROJECT_PROJECT_MEMBER, type = OperLogConstants.CREATE, title = "添加项目成员成员")
|
||||
public void addProjectMember(@RequestBody AddMemberRequest request) {
|
||||
userService.addProjectMember(request);
|
||||
|
|
Loading…
Reference in New Issue