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

Websocket zatim pro vsechny

parent dd73e5af
No related branches found
No related tags found
No related merge requests found
...@@ -261,13 +261,6 @@ sub ws { ...@@ -261,13 +261,6 @@ sub ws {
my $pubsub = Mojo::Pg::PubSub->new(pg => $c->pg); my $pubsub = Mojo::Pg::PubSub->new(pg => $c->pg);
$pubsub->listen(posts => sub($pubsub, $payload) { $pubsub->listen(posts => sub($pubsub, $payload) {
if (
$payload->{type} == 0
&& $payload->{state} == 0
&& ! $c->user_roles->{chairman}
) {
return;
}
$c->send($payload); $c->send($payload);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment