GRN2-385: Recording permission tied to role cleanup (#2812)

* Code cleanup

* String change
This commit is contained in:
Ahmad Farhat
2021-06-28 21:47:04 -04:00
committed by GitHub
parent c46980c84c
commit f013e2b529
6 changed files with 12 additions and 15 deletions

View File

@ -123,15 +123,6 @@ module Recorder
end
end
def perm_to_record_meeting
# define perm without init config of room setting
if recording_consent_required?
@settings.get_value("Room Configuration Recording") != "disabled" && current_user&.role&.get_permission("can_launch_recording")
else
current_user&.role&.get_permission("can_launch_recording")
end
end
private
# Gets the email of the room owner to which the recording belongs to