From 7b31050a96bf781f580cf50246226a6b7bba1f44 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Fri, 5 Jun 2020 02:33:42 +0200
Subject: [PATCH] Bugfix

---
 lib/PiTube/Controller/Stream.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/PiTube/Controller/Stream.pm b/lib/PiTube/Controller/Stream.pm
index 5af18c2..e27ce0c 100644
--- a/lib/PiTube/Controller/Stream.pm
+++ b/lib/PiTube/Controller/Stream.pm
@@ -43,7 +43,7 @@ sub player {
 
     $c->stash->{stream} = $stream;
 
-    if ( ! $c->session->{user}{acl}{ $stream->name } ) {
+    if ( ! $c->session->{user}{acl}{ $stream->key } ) {
         $c->render('stream/403');
         return;
     }
-- 
GitLab