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

Neprihlasenym nezobrazime neverejne ani na seznamu

parent 7b31050a
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,8 @@ sub list { ...@@ -13,6 +13,8 @@ sub list {
is_active => 't' is_active => 't'
}; };
$cond->{is_public} = 't' if ! $c->is_user_authenticated;
my $streams = $c->schema->resultset('Stream_view')->search( my $streams = $c->schema->resultset('Stream_view')->search(
$cond, $cond,
{ order_by => 'name' } { order_by => 'name' }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment