security: round 2 — multi-tenancy isolation (OrganisationScope, scoped validation, boundary checks)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -96,6 +96,7 @@ final class ShiftAssignmentController extends Controller
|
||||
Gate::authorize('bulkApprove', [ShiftAssignment::class, $event]);
|
||||
|
||||
$assignments = ShiftAssignment::whereIn('id', $request->validated('assignment_ids'))
|
||||
->whereHas('shift.festivalSection', fn ($q) => $q->where('event_id', $event->id))
|
||||
->with('shift')
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user