Revert shift templates to be strictly isolated by creator

This commit is contained in:
2026-07-06 13:52:53 +08:00
parent 4691f27fbe
commit 94c1ea050f

View File

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