fix: Add a back up for isAtomicPushAllowed as false (#33647)

This commit is contained in:
Nidhi 2024-06-26 10:01:30 +05:30 committed by GitHub
parent 519b53ea9b
commit 6edea92517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,9 @@ public class GitConfigCEImpl implements GitConfigCE {
@Override @Override
public Mono<Boolean> getIsAtomicPushAllowed() { public Mono<Boolean> getIsAtomicPushAllowed() {
return tenantService.getTenantConfiguration().map(tenant -> tenant.getTenantConfiguration() return tenantService
.getIsAtomicPushAllowed()); .getTenantConfiguration()
.map(tenant -> tenant.getTenantConfiguration().getIsAtomicPushAllowed())
.switchIfEmpty(Mono.just(false));
} }
} }

View File

@ -54,7 +54,7 @@ public class TenantConfigurationCE implements Serializable {
Boolean isStrongPasswordPolicyEnabled; Boolean isStrongPasswordPolicyEnabled;
private Boolean isAtomicPushAllowed; private Boolean isAtomicPushAllowed = false;
public void addThirdPartyAuth(String auth) { public void addThirdPartyAuth(String auth) {
if (thirdPartyAuths == null) { if (thirdPartyAuths == null) {