don't register webhooks for guest meetings

This commit is contained in:
Josh 2017-07-12 14:06:53 -04:00
parent 29ca709c85
commit 0cbb587fc0
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ module BbbApi
"meta_meeting-name": options[:meeting_name]}
) 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)
end