From 6cff909ee41b5e5960da1121b56babfa086b44a9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 26 Jul 2018 10:06:28 +0200 Subject: [PATCH 1/6] Allow to make guests moderators Signed-off-by: Joas Schilling --- js/app.js | 1 + js/views/callinfoview.js | 7 ++ js/views/participantlistview.js | 76 +++++++++---- lib/Controller/RoomController.php | 172 ++++++++++++++++++++++++------ lib/Participant.php | 13 +++ lib/Room.php | 24 +++++ 6 files changed, 241 insertions(+), 52 deletions(-) diff --git a/js/app.js b/js/app.js index 1bf9c440294..23cbebc9b20 100644 --- a/js/app.js +++ b/js/app.js @@ -33,6 +33,7 @@ USER: 3, GUEST: 4, USERSELFJOINED: 5, + GUEST_MODERATOR: 6, /* Must stay in sync with values in "lib/Room.php". */ FLAG_DISCONNECTED: 0, diff --git a/js/views/callinfoview.js b/js/views/callinfoview.js index 663fb3b6339..b5a4d30f687 100644 --- a/js/views/callinfoview.js +++ b/js/views/callinfoview.js @@ -44,8 +44,10 @@ ' ' + '{{#if canModerate}}' + '