From c594dfaaa5bbed17ca3f9659f4e0c6b98c06d1e5 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 3 Jul 2015 13:27:32 +0200 Subject: [PATCH] An admin is just an owner of every rooms --- vroom.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vroom.pl b/vroom.pl index d6252e5..6285d66 100755 --- a/vroom.pl +++ b/vroom.pl @@ -1907,6 +1907,8 @@ any '/api' => sub { } } 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){ return $self->render( json => {