Skip to content

Commit

Permalink
Merge pull request #617 from owenlxu/issue_615
Browse files Browse the repository at this point in the history
bug: auth权限支持本地级联 #615
  • Loading branch information
owenlxu authored May 18, 2023
2 parents ffa2d47 + 8ba83ca commit 1fa0ef5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,11 @@ class DevopsPermissionServiceImpl constructor(
with(request) {
logger.debug("check devops permission request [$request]")

if (super.isUserLocalAdmin(uid)) {
if (super.isUserLocalAdmin(uid) || super.isUserLocalProjectAdmin(uid, projectId!!)) {
return true
}
// project权限
if (resourceType == ResourceType.PROJECT.toString()) {
if (super.isUserLocalProjectAdmin(uid, projectId!!)) {
return true
}
return checkDevopsProjectPermission(uid, projectId!!, action)
}

Expand Down

0 comments on commit 1fa0ef5

Please sign in to comment.