forked from External/greenlight
User room owners permission if current_user is nil for recording (#2854)
This commit is contained in:
parent
794734c6d6
commit
fc06994d1f
|
@ -435,10 +435,11 @@ class RoomsController < ApplicationController
|
|||
|
||||
def record_meeting
|
||||
# If the require consent setting is checked, then check the room setting, else, set to true
|
||||
user = current_user || @room.owner
|
||||
if recording_consent_required?
|
||||
room_setting_with_config("recording") && current_user&.role&.get_permission("can_launch_recording")
|
||||
room_setting_with_config("recording") && user&.role&.get_permission("can_launch_recording")
|
||||
else
|
||||
current_user&.role&.get_permission("can_launch_recording")
|
||||
user&.role&.get_permission("can_launch_recording")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue