]> git.localhorst.tv Git - alttp.git/blobdiff - routes/channels.php
first half of AoS generator
[alttp.git] / routes / channels.php
index 4581feb7df93cf85c1b5501370046d7c1e6cc18a..e93d25e9c284e4afa7c4c91876f6688e97133590 100644 (file)
@@ -22,6 +22,11 @@ Broadcast::channel('App.Control', function ($user) {
        return true;
 });
 
+Broadcast::channel('Protocol.{id}', function ($user, $id) {
+       $tournament = Tournament::findOrFail($id);
+       return $user->can('viewProtocol', $tournament);
+});
+
 Broadcast::channel('Tournament.{id}', function ($user, $id) {
        $tournament = Tournament::findOrFail($id);
        return true;