GRN2-128: Fixed issue with manage rooms permissions (#929)

* Fixed issue with manage rooms permissions

* Improved server rooms efficiency
This commit is contained in:
Ahmad Farhat
2020-01-23 14:24:41 -05:00
committed by farhatahmad
parent 967130e57c
commit 397b4b742f
6 changed files with 51 additions and 42 deletions

View File

@ -71,4 +71,9 @@ module AdminsHelper
def edit_disabled
@edit_disabled ||= @selected_role.priority <= current_user.highest_priority_role.priority
end
# Get the room status to display in the Server Rooms table
def room_is_running(id)
@running_room_bbb_ids.include?(id)
end
end