Co-authored-by: Tobias Fiebig <t.fiebig@tudelft.nl> (#1296)

Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
This commit is contained in:
yanosz
2020-06-29 19:43:12 +02:00
committed by GitHub
parent 9a96df6a37
commit 2e4010aed8
12 changed files with 109 additions and 31 deletions

View File

@ -97,6 +97,14 @@ class Room < ApplicationRecord
table.order(Arel.sql(order_string))
end
def settings_hash
JSON.parse(room_settings || "{}")
end
def recording?
settings_hash["recording"]
end
private
# Generates a uid for the room and BigBlueButton.

View File

@ -70,6 +70,8 @@ class Setting < ApplicationRecord
room_config_setting("anyone-can-start")
when "Room Configuration All Join Moderator"
room_config_setting("all-join-moderator")
when "Room Configuration Recording"
room_config_setting("recording")
end
end