Skip to content

Commit

Permalink
Fix exception for standard admins
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumos committed May 23, 2020
1 parent f7e4294 commit edd3c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Policies/NavigationLinkPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function view(?User $authUser, NavigationLink $navigationLink)
* @param NavigationLink $navigationLink
* @return boolean
*/
public function index(User $authUser, NavigationLink $navigationLink)
public function index(User $authUser)
{
return $authUser->hasRole('admin');
}
Expand Down

0 comments on commit edd3c1f

Please sign in to comment.