Skip to content

Commit

Permalink
Fix training permissions so Senior Staff can see training records.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonhasacat committed Mar 8, 2024
1 parent ec08c42 commit ee8493b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/TrainingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ function viewEvals(
Request $request
)
{
if (!RoleHelper::isTrainingStaff(Auth::user()->cid, false)) {
if (!RoleHelper::isTrainingStaff() && !RoleHelper::isFacilitySeniorStaff()) {
abort(403);
}

Expand Down

0 comments on commit ee8493b

Please sign in to comment.