Skip to content

Commit

Permalink
#10670 Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jan 8, 2025
1 parent 803e31f commit e9d044a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions classes/services/PKPNavigationMenuService.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,7 @@ public function getDisplayStatus(&$navigationMenuItem, &$navigationMenu)
case NavigationMenuItem::NMI_TYPE_USER_DASHBOARD:
if ($currentUser->hasRole([Role::ROLE_ID_MANAGER, Role::ROLE_ID_ASSISTANT, Role::ROLE_ID_REVIEWER, Role::ROLE_ID_AUTHOR], $contextId) || $currentUser->hasRole([Role::ROLE_ID_SITE_ADMIN], PKPApplication::SITE_CONTEXT_ID)) {
$pkpPageRouter = $request->getRouter(); /** @var \PKP\core\PKPPageRouter $pkpPageRouter */
$pkpPageRouter->getHomeUrl($request);



$navigationMenuItem->setUrl($pkpPageRouter->getHomeUrl($request));
} else {
$navigationMenuItem->setUrl($dispatcher->url(
Expand Down

0 comments on commit e9d044a

Please sign in to comment.