From b45a8f4b5f3b1d55e74cdf9f87054cf31945d886 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 12 Aug 2024 20:44:17 +0100 Subject: [PATCH] Added reporting-only access for selectlists Signed-off-by: snipe --- app/Providers/AuthServiceProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php index a69a6cadf0..2875dc2861 100644 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -230,7 +230,8 @@ class AuthServiceProvider extends ServiceProvider || $user->can('update', Accessory::class) || $user->can('create', Accessory::class) || $user->can('update', User::class) - || $user->can('create', User::class); + || $user->can('create', User::class) + || ($user->hasAccess('reports.view')); });