]> git.localhorst.tv Git - alttp.git/blobdiff - app/Http/Controllers/EpisodeController.php
check channel ID on crew add
[alttp.git] / app / Http / Controllers / EpisodeController.php
index 4e93427836287daea50cf6645cfaa638c5d22b59..785a24186f950e258a0dbe1afa851279e0412375 100644 (file)
@@ -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();