Remove references to isGitBasicAuth in GWT UI

Change-Id: I45c60597e636918eaecfa57bc4c9be11bf2110bf
This commit is contained in:
David Pursehouse
2017-03-01 17:48:33 +09:00
parent cdc381ea72
commit b2ccfb276a
3 changed files with 3 additions and 10 deletions

View File

@@ -592,9 +592,7 @@ public class Dispatcher {
return new MyPasswordScreen();
}
if (matchExact(SETTINGS_OAUTH_TOKEN, token)
&& Gerrit.info().auth().isOAuth()
&& Gerrit.info().auth().isGitBasicAuth()) {
if (matchExact(SETTINGS_OAUTH_TOKEN, token) && Gerrit.info().auth().isOAuth()) {
return new MyOAuthTokenScreen();
}

View File

@@ -46,7 +46,7 @@ public abstract class SettingsScreen extends MenuScreen {
if (Gerrit.info().auth().isHttpPasswordSettingsEnabled()) {
linkByGerrit(Util.C.tabHttpAccess(), PageLinks.SETTINGS_HTTP_PASSWORD);
}
if (Gerrit.info().auth().isOAuth() && Gerrit.info().auth().isGitBasicAuth()) {
if (Gerrit.info().auth().isOAuth()) {
linkByGerrit(Util.C.tabOAuthToken(), PageLinks.SETTINGS_OAUTH_TOKEN);
}
if (Gerrit.info().gerrit().editGpgKeys()) {