Skip to content
Snippets Groups Projects
Commit 027c1441 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

hide password change navigation when password is not changable, fixes #2552

Closes #2552

Merge request studip/studip!1725
parent 278cbde9
No related branches found
No related tags found
No related merge requests found
...@@ -62,8 +62,16 @@ class ProfileNavigation extends Navigation ...@@ -62,8 +62,16 @@ class ProfileNavigation extends Navigation
// profile data // profile data
$navigation = new Navigation(_('Persönliche Angaben')); $navigation = new Navigation(_('Persönliche Angaben'));
$navigation->addSubNavigation('profile', new Navigation(_('Grunddaten'), 'dispatch.php/settings/account')); $navigation->addSubNavigation('profile', new Navigation(_('Grunddaten'), 'dispatch.php/settings/account'));
if (($perm->get_profile_perm($current_user->user_id) == 'user' if (
|| ($perm->have_perm('root') && Config::get()->ALLOW_ADMIN_USERACCESS))) { !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( $navigation->addSubNavigation('password', new Navigation(
_('Passwort ändern'), _('Passwort ändern'),
'dispatch.php/settings/password' 'dispatch.php/settings/password'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment