Skip to content

Commit

Permalink
IBX-6729: Drafts should be removed from user menu
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Oct 10, 2023
1 parent 95197b1 commit d6356f9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/lib/Menu/UserMenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,6 @@ public function createStructure(array $options): ItemInterface

$token = $this->tokenStorage->getToken();
if (null !== $token && is_object($token->getUser())) {
if ($this->permissionResolver->hasAccess('content', 'versionread') !== false) {
$menu->addChild(
$this->createMenuItem(self::ITEM_DRAFTS, [
'route' => 'ibexa.content_draft.list',
'extras' => [
'orderNumber' => 30,
],
])
);
}

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

0 comments on commit d6356f9

Please sign in to comment.