feat: [CODE-2087]: fix rule check for force update push (#2728)

* fix rule check for force update push
CODE-2402
Marko Gaćeša 2024-09-24 12:52:08 +00:00 committed by Harness
parent 479c9b9fe7
commit 1fd081199e
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ func (v *DefLifecycle) RefChangeVerify(_ context.Context, in RefChangeVerifyInpu
"Push to branch %q is not allowed. Please use pull requests.", in.RefNames[0])
}
case RefActionUpdateForce:
if v.UpdateForceForbidden {
if v.UpdateForceForbidden || v.UpdateForbidden {
violations.Addf(codeLifecycleUpdateForce,
"Force push to branch %q is not allowed. Please use pull requests.", in.RefNames[0])
}