From 94c1ea050f5685d067ccffc7c1a7e43b6ecd101e Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 6 Jul 2026 13:52:53 +0800 Subject: [PATCH] Revert shift templates to be strictly isolated by creator --- app/Http/Controllers/ShiftController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ShiftController.php b/app/Http/Controllers/ShiftController.php index de85582a9..e88ebb3eb 100644 --- a/app/Http/Controllers/ShiftController.php +++ b/app/Http/Controllers/ShiftController.php @@ -16,7 +16,7 @@ class ShiftController extends Controller if (Auth::user()->can('manage-any-shifts')) { $q->whereIn('created_by', getCompanyAndUsersId()); } else { - $q->whereIn('created_by', getCompanyAndUsersId()); // Show all company shift templates + $q->where('created_by', Auth::id()); } });