forked from External/greenlight
GRN2-385: Recording permission tied to role cleanup (#2812)
* Code cleanup * String change
This commit is contained in:
@ -31,8 +31,6 @@ class AdminsController < ApplicationController
|
||||
before_action :find_deleted_user, only: manage_deleted_users
|
||||
before_action :verify_admin_of_user, only: [manage_users, manage_deleted_users]
|
||||
|
||||
helper_method :perm_to_record_meeting
|
||||
|
||||
# GET /admins
|
||||
def index
|
||||
# Initializa the data manipulation variables
|
||||
|
@ -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
|
||||
|
@ -35,8 +35,6 @@ class RoomsController < ApplicationController
|
||||
before_action :verify_user_not_admin, only: [:show]
|
||||
skip_before_action :verify_authenticity_token, only: [:join]
|
||||
|
||||
helper_method :perm_to_record_meeting
|
||||
|
||||
# POST /
|
||||
def create
|
||||
# Return to root if user is not signed in
|
||||
|
Reference in New Issue
Block a user