only allow room owner to perform recording actions

This commit is contained in:
Zachary Chai
2016-11-01 12:03:00 -04:00
parent e400bf41e8
commit 15411d76fa
5 changed files with 23 additions and 16 deletions

View File

@ -11,6 +11,7 @@ class RecordingUpdatesJob < ApplicationJob
bbb_res = bbb_get_recordings(nil, record_id)
if bbb_res[:recordings].first[:published].to_s == published
ActionCable.server.broadcast "#{room}_recording_updates_channel",
record_id: record_id,
published: bbb_res[:recordings].first[:published]
break
end