mirror of https://github.com/dani/vroom.git
Fix admin user not able to connect on the signaling channel
This commit is contained in:
parent
c14ab9f617
commit
34647201e3
2
vroom.pl
2
vroom.pl
|
@ -1089,7 +1089,7 @@ websocket '/socket.io/:ver/websocket/:id' => sub {
|
|||
# Is this peer allowed to join the room ?
|
||||
if (!$self->get_room_by_name($room) ||
|
||||
!$role ||
|
||||
$role !~ m/^owner|participant$/){
|
||||
$role !~ m/^(owner)|(participant)|(admin)$/){
|
||||
$self->app->log->debug("Failed to connect to the signaling channel, " . $self->get_name .
|
||||
" (session ID " . $self->session('id') . ") has no role in room $room");
|
||||
$self->send( Protocol::SocketIO::Message->new( type => 'disconnect' ) );
|
||||
|
|
Loading…
Reference in New Issue