From 1d950b14a85fd9eae8795f368ec274c90cb6efd4 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sat, 21 Oct 2023 13:47:26 +0200 Subject: [PATCH] check channel ID on crew add --- app/Http/Controllers/EpisodeController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/EpisodeController.php b/app/Http/Controllers/EpisodeController.php index 4e93427..785a241 100644 --- a/app/Http/Controllers/EpisodeController.php +++ b/app/Http/Controllers/EpisodeController.php @@ -56,6 +56,7 @@ class EpisodeController extends Controller if (isset($validatedData['add'])) { $crew = $episode->crew() + ->where('channel_id', '=', $channel->id) ->where('user_id', '=', $validatedData['add']) ->where('role', '=', $validatedData['role']) ->first(); -- 2.39.2