未验证 提交 9ed96cdd 编写于 作者: K KubeSphere CI Bot 提交者: GitHub

Merge pull request #2480 from wansir/2475

fix: Change user role failed
...@@ -1180,7 +1180,7 @@ func (h *iamHandler) updateGlobalRoleBinding(operator user.Info, user *iamv1alph ...@@ -1180,7 +1180,7 @@ func (h *iamHandler) updateGlobalRoleBinding(operator user.Info, user *iamv1alph
return err return err
} }
if oldGlobalRole.Name == globalRole { if oldGlobalRole != nil && oldGlobalRole.Name == globalRole {
return nil return nil
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册