Skip to content
Snippets Groups Projects
Unverified Commit fc06994d authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

User room owners permission if current_user is nil for recording (#2854)

parent 794734c6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment