Fix admin user not able to connect on the signaling channel

This commit is contained in:
Daniel Berteaud 2015-07-03 13:25:15 +02:00
parent c14ab9f617
commit 34647201e3
1 changed files with 1 additions and 1 deletions

View File

@ -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' ) );