Use proper existingProjectGrant
[ZITADOPER-1]
This commit is contained in:
@@ -368,7 +368,7 @@ func (wr *wrappedMachineUserReconciler) reconcileUserGrants(ctx context.Context,
|
|||||||
var existingProjectGrant *project.GrantedProject
|
var existingProjectGrant *project.GrantedProject
|
||||||
for _, existingGrantedProject := range grantedProjects.Result {
|
for _, existingGrantedProject := range grantedProjects.Result {
|
||||||
if existingGrantedProject.ProjectId == userGrantedProject.Status.ProjectId {
|
if existingGrantedProject.ProjectId == userGrantedProject.Status.ProjectId {
|
||||||
existingGrantedProject = existingGrantedProject
|
existingProjectGrant = existingGrantedProject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if existingProjectGrant == nil {
|
if existingProjectGrant == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user