Merge pull request #7494 from jwangyangls/remove_oidc_ability_to_change_password

Remove OIDC's ability to change passwords
This commit is contained in:
jwangyangls 2019-04-24 13:24:54 +08:00 committed by GitHub
commit 743b3914c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,8 +113,8 @@ export class NavigatorComponent implements OnInit {
let user = this.session.getCurrentUser();
let config = this.appConfigService.getConfig();
return user && ((config && !(config.auth_mode === "ldap_auth" || config.auth_mode === "uaa_auth")) ||
(user.user_id === 1 && user.username === "admin"));
return user && ((config && !(config.auth_mode === "ldap_auth" || config.auth_mode === "uaa_auth"
|| config.auth_mode === "oidc_auth")) || (user.user_id === 1 && user.username === "admin"));
}
matchLang(lang: string): boolean {