mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 04:51:22 +01:00
Merge pull request #7494 from jwangyangls/remove_oidc_ability_to_change_password
Remove OIDC's ability to change passwords
This commit is contained in:
commit
743b3914c3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user