Merge pull request #2609 from wansir/master

fix RBAC authorizer
This commit is contained in:
KubeSphere CI Bot
2020-07-25 10:09:50 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -249,7 +249,7 @@ func (r *RBACAuthorizer) visitRulesFor(requestAttributes authorizer.Attributes,
workspace = requestAttributes.GetWorkspace()
}
if workspaceRoleBindings, err := r.am.ListWorkspaceRoleBindings("", requestAttributes.GetWorkspace()); err != nil {
if workspaceRoleBindings, err := r.am.ListWorkspaceRoleBindings("", workspace); err != nil {
if !visitor(nil, "", nil, err) {
return
}