forked from External/greenlight
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:
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user