An admin is just an owner of every rooms

master
Daniel Berteaud 10 years ago
parent 34647201e3
commit c594dfaaa5
  1. 2
      vroom.pl

@ -1907,6 +1907,8 @@ any '/api' => sub {
} }
} }
my $role = $self->get_peer_role($peer_id); my $role = $self->get_peer_role($peer_id);
# In a room, an admin is just equivalent to an owner
$role = ($role eq 'admin') ? 'owner' : $role;
if (!$role){ if (!$role){
return $self->render( return $self->render(
json => { json => {

Loading…
Cancel
Save