From ee8493bf93cc1b6e60d53914ae3efaf92223ca73 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 8 Mar 2024 10:56:35 -0800 Subject: [PATCH] Fix training permissions so Senior Staff can see training records. --- app/Http/Controllers/TrainingController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TrainingController.php b/app/Http/Controllers/TrainingController.php index 08638d21..bd30a71c 100644 --- a/app/Http/Controllers/TrainingController.php +++ b/app/Http/Controllers/TrainingController.php @@ -609,7 +609,7 @@ function viewEvals( Request $request ) { - if (!RoleHelper::isTrainingStaff(Auth::user()->cid, false)) { + if (!RoleHelper::isTrainingStaff() && !RoleHelper::isFacilitySeniorStaff()) { abort(403); }