Skip to content
Snippets Groups Projects
Commit a278506d authored by Goran Miric's avatar Goran Miric Committed by Christopher C. Wells
Browse files

Issue #3057524 by g_miric: Access Issue

parent bef44dfd
Branches
Tags
No related merge requests found
......@@ -24,7 +24,8 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter
if (!$entity->isEnabled()) {
return AccessResult::allowedIfHasPermission($account, 'view disabled colossal_menu_link');
}
return AccessResult::allowedIfHasPermission($account, 'view enabled colossal_menu_link');
$url = $entity->getUrlObject();
return AccessResult::allowedIf($account->hasPermission('view enabled colossal_menu_link') && $url->access($account));
case 'update':
return AccessResult::allowedIfHasPermission($account, 'edit colossal_menu_link');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment