Skip to content
Snippets Groups Projects
Verified Commit e5ac34c0 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Bitova kontrola ke sledovani

parent e194a408
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment