From edd3c1fd16ec8a5dcb07dbad49f3c9c251221629 Mon Sep 17 00:00:00 2001 From: ilumos Date: Sat, 23 May 2020 20:54:27 +0100 Subject: [PATCH] Fix exception for standard admins --- app/Policies/NavigationLinkPolicy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Policies/NavigationLinkPolicy.php b/app/Policies/NavigationLinkPolicy.php index dd41ce61a..382ef204a 100644 --- a/app/Policies/NavigationLinkPolicy.php +++ b/app/Policies/NavigationLinkPolicy.php @@ -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'); }