forked from External/greenlight
Feat: recording perm (#2775)
* fix: comment into code not related - abusive copy/paste * Add user permission for recording Add a role permission 'can_launch_record' to users to set the ability to run recording. By default everybody can record, but we can set to the user role without perm to record and create a new role for those who can.
This commit is contained in:
committed by
GitHub
parent
e0775122d4
commit
a7ecd54381
@ -123,6 +123,15 @@ 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
|
||||
|
Reference in New Issue
Block a user