forked from External/greenlight
don't register webhooks for guest meetings
This commit is contained in:
parent
29ca709c85
commit
0cbb587fc0
|
@ -90,7 +90,8 @@ module BbbApi
|
||||||
"meta_meeting-name": options[:meeting_name]}
|
"meta_meeting-name": options[:meeting_name]}
|
||||||
) if options[:room_owner]
|
) if options[:room_owner]
|
||||||
|
|
||||||
if Rails.configuration.use_webhooks
|
# Only register webhooks if they are enabled it's not a guest meeting.
|
||||||
|
if Rails.configuration.use_webhooks && params[:resource] == 'rooms'
|
||||||
webhook_register(options[:hook_url], meeting_id)
|
webhook_register(options[:hook_url], meeting_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue