Enable HTTP password setting based upon gitBasicAuthPolicy

Change-Id: I7a03cad1f0ebc6c69eca717b0606325df0c946a2
This commit is contained in:
David Ostrovsky 2017-04-25 11:32:10 +02:00
parent b67f80fb18
commit fe81d03010

View File

@ -84,7 +84,8 @@ public class AuthInfo extends JavaScriptObject {
}
public final boolean isHttpPasswordSettingsEnabled() {
return gitBasicAuthPolicy() != GitBasicAuthPolicy.LDAP;
return gitBasicAuthPolicy() == GitBasicAuthPolicy.HTTP
|| gitBasicAuthPolicy() == GitBasicAuthPolicy.HTTP_LDAP;
}
public final GitBasicAuthPolicy gitBasicAuthPolicy() {