Skip to content

Commit

Permalink
Only list workshop in sidebar when accessible (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijnolivier authored and nWidart committed Aug 9, 2016
1 parent fc6680f commit 777e95f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sidebar/SidebarExtender.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public function extendWith(Menu $menu)
$this->auth->hasAccess('workshop.themes.index')
);
});

$group->authorize(
$this->auth->hasAccess('workshop.*')
);
});

return $menu;
Expand Down

0 comments on commit 777e95f

Please sign in to comment.