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

Korektnejsi prace s neprihlasenym

parent 9f6d5276
No related branches found
Tags v1.2.1
No related merge requests found
......@@ -25,7 +25,11 @@ sub list {
STREAM:
while ( my $stream = $streams->next()) {
my $rights = $c->session->{user}{acl}{ $stream->key } || next STREAM;
my $rights = $c->session->{user}{acl}{ $stream->key };
if ( ! $stream->is_public ) {
next STREAM if ! $rights;
}
my %stream = (
$stream->get_columns(),
......
......@@ -32,7 +32,11 @@ $('#Streams').bootstrapTable({
});
function streamInfoAllowed(index, row) {
% if ( $c->is_user_authenticated) {
return row.is_live ? 0 : 1;
% } else {
return 0;
% }
}
function streamInfo(index, row, element) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment