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()); } });