diff --git a/lib/navigation/ProfileNavigation.php b/lib/navigation/ProfileNavigation.php index 65faca9ae6be5d0b3ef0ce24ab0d9f4860ecb030..ffff06cbeb40678dab0e7c1cb88c67f25f4e2444 100644 --- a/lib/navigation/ProfileNavigation.php +++ b/lib/navigation/ProfileNavigation.php @@ -62,8 +62,16 @@ class ProfileNavigation extends Navigation // profile data $navigation = new Navigation(_('Persönliche Angaben')); $navigation->addSubNavigation('profile', new Navigation(_('Grunddaten'), 'dispatch.php/settings/account')); - if (($perm->get_profile_perm($current_user->user_id) == 'user' - || ($perm->have_perm('root') && Config::get()->ALLOW_ADMIN_USERACCESS))) { + if ( + !StudipAuthAbstract::CheckField('auth_user_md5.password', $current_user->auth_plugin) + && ( + $perm->get_profile_perm($current_user->user_id) === 'user' + || ( + $perm->have_perm('root') + && Config::get()->ALLOW_ADMIN_USERACCESS + ) + ) + ) { $navigation->addSubNavigation('password', new Navigation( _('Passwort ändern'), 'dispatch.php/settings/password'