From: Daniel Karbach Date: Sat, 21 Oct 2023 11:47:26 +0000 (+0200) Subject: check channel ID on crew add X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=1d950b14a85fd9eae8795f368ec274c90cb6efd4;hp=51a752c7cce2465043dfb3d63a0152b64765b167;p=alttp.git check channel ID on crew add --- 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();