Skip to content

Commit

Permalink
Merge pull request #9189 from fcfang123/issue-9149
Browse files Browse the repository at this point in the history
对接RBAC权限优化 #9149
  • Loading branch information
bkci-bot authored Jul 25, 2023
2 parents ff0c14b + 1c0ee77 commit 81d0f93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ class MigrateV0PolicyService constructor(
logger.info("skip $action action")
rbacActions.remove(action)
}
certActions.contains(action) && !actions.contains(CERT_VIEW) -> {
certActions.contains(action) && !rbacActions.contains(CERT_VIEW) -> {
rbacActions.add(CERT_VIEW)
}
envNodeActions.contains(action) && !actions.contains(ENV_NODE_VIEW) -> {
envNodeActions.contains(action) && !rbacActions.contains(ENV_NODE_VIEW) -> {
rbacActions.add(ENV_NODE_VIEW)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
"system" : "bk_ci_rbac",
"actions" : [ {
"id" : "env_node_use"
},{
"id" : "env_node_edit"
},{
"id" : "env_node_view"
}],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
"actions": [
{
"id": "env_node_use"
},
{
"id": "env_node_edit"
}
],
"resources": [
Expand Down

0 comments on commit 81d0f93

Please sign in to comment.