forked from External/greenlight
Add room setting to require moderator approval (#660)
This commit is contained in:
committed by
Jesus Federico
parent
f7c88cfc6a
commit
7b96d5ae41
@ -62,6 +62,8 @@ class Room < ApplicationRecord
|
||||
"meta_bbb-origin-server-name": options[:host]
|
||||
}
|
||||
|
||||
create_options[:guestPolicy] = "ASK_MODERATOR" if options[:require_moderator_approval]
|
||||
|
||||
# Send the create request.
|
||||
begin
|
||||
meeting = bbb(owner.provider).create_meeting(name, bbb_id, create_options)
|
||||
@ -104,6 +106,8 @@ class Room < ApplicationRecord
|
||||
join_opts[:userID] = uid if uid
|
||||
join_opts[:joinViaHtml5] = options[:join_via_html5] if options[:join_via_html5]
|
||||
|
||||
join_opts[:guest] = true if options[:require_moderator_approval] && !options[:user_is_moderator]
|
||||
|
||||
bbb(owner.provider).join_meeting_url(bbb_id, name, password, join_opts)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user