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

@ -1,5 +1,6 @@
json.partial! 'bbb', messageKey: @messageKey, message: @message, status: @status
unless @response.blank?
json.is_owner current_user == @user
json.recordings do
unless @response.is_a? Array
@response = [@response]