Skip to content

Commit

Permalink
EZP-32333: Hidden 'change password' menu item if user has no access (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed May 25, 2021
1 parent f56c30c commit 372973e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/Menu/UserMenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ public function createStructure(array $options): ItemInterface

$token = $this->tokenStorage->getToken();
if (null !== $token && is_object($token->getUser())) {
$menu->addChild(
$this->createMenuItem(self::ITEM_CHANGE_PASSWORD, ['route' => 'ezplatform.user_profile.change_password'])
);

$menu->addChild(
$this->createMenuItem(self::ITEM_USER_SETTINGS, ['route' => 'ezplatform.user_settings.list'])
);
Expand Down

0 comments on commit 372973e

Please sign in to comment.