forked from External/greenlight
GRN2-385: Recording permission tied to role cleanup (#2812)
* Code cleanup * String change
This commit is contained in:
@ -137,4 +137,14 @@ module ApplicationHelper
|
||||
return "" if date.nil? # Handle invalid dates
|
||||
local_time(date, :default)
|
||||
end
|
||||
|
||||
# Returns true if the user is allowed to record meetings
|
||||
def perm_to_record_meeting
|
||||
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
|
||||
end
|
||||
|
Reference in New Issue
Block a user