fix: Change user role failed
Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
@@ -1180,7 +1180,7 @@ func (h *iamHandler) updateGlobalRoleBinding(operator user.Info, user *iamv1alph
|
||||
return err
|
||||
}
|
||||
|
||||
if oldGlobalRole.Name == globalRole {
|
||||
if oldGlobalRole != nil && oldGlobalRole.Name == globalRole {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user