diff --git a/lib/PiTube/Controller/Nginx.pm b/lib/PiTube/Controller/Nginx.pm index 73162231413ce52c7d2b23104878beaf647ac1f2..6f0612a6cd1683b0d036b2a1cc040388a56c1c01 100644 --- a/lib/PiTube/Controller/Nginx.pm +++ b/lib/PiTube/Controller/Nginx.pm @@ -23,6 +23,10 @@ sub callback_rtmp { }); $c->render( status => 403, text => ''), return if ! $user; +# my $acl = $c->schema->resultset('ACL')->user_acl( +# $user->username, +# ); + # TODO: autorizace user/stream # aktualizace stavu streamu @@ -57,7 +61,7 @@ sub callback_hls { $c->app->log->debug($c->req->headers->header('X-Original-URI')); if ($c->req->headers->header('X-Original-URI') =~ HLS ) { - if ( $c->session->{user}{acl}{ $1 } ) { + if ( $c->session->{user}{acl}{ $1 } & 4 ) { #TODO: constant $c->render( status => 204, text => '' ); return; }