@@ -15,8 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function adminLink(User $user) |
| 17 | 17 | { |
| 18 | - $userRole = UserRolePermissions::whereRoleId($user->role_id)->whereHas('UserRolePermissionTypes', function($q) |
|
| 19 | - { |
|
| 18 | + $userRole = UserRolePermissions::whereRoleId($user->role_id)->whereHas('UserRolePermissionTypes', function($q) { |
|
| 20 | 19 | $q->whereIsAdminLink(1); |
| 21 | 20 | })->whereAllow(1)->count(); |
| 22 | 21 | |