-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 支持目录权限配置 #1579 #1602
feat: 支持目录权限配置 #1579 #1602
Conversation
@@ -188,46 +192,30 @@ open class PermissionServiceImpl constructor( | |||
// check user admin permission | |||
if (user.admin) return true | |||
// check role project admin | |||
if (checkProjectAdmin(request, user.roles)) return true | |||
if (checkProjectAdmin(request)) return true | |||
// check role project user | |||
if (checkProjectUser(request, user.roles)) return true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里只要是项目成员就不会再继续判断仓库管理员或是否有Node权限了
...auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/service/local/PermissionServiceImpl.kt
Outdated
Show resolved
Hide resolved
...auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/service/local/PermissionServiceImpl.kt
Outdated
Show resolved
Hide resolved
...auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/service/local/PermissionServiceImpl.kt
Show resolved
Hide resolved
@@ -30,6 +30,7 @@ | |||
*/ | |||
dependencies { | |||
implementation(project(":common:common-api")) | |||
api(project(":common:common-query:query-api")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是多余的依赖吗
} | ||
} else { | ||
if (it.includePattern.isNotEmpty()) { | ||
excludePath.addAll(it.includePattern) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里需要过滤用户有权限的路径,不加入到excludePath
中
No description provided.