fix: Add a back up for isAtomicPushAllowed as false (#33647)
This commit is contained in:
parent
519b53ea9b
commit
6edea92517
|
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user