forked from External/greenlight
		
	master #1
@@ -142,7 +142,7 @@ module ApplicationHelper
 | 
				
			|||||||
  def perm_to_record_meeting
 | 
					  def perm_to_record_meeting
 | 
				
			||||||
    if recording_consent_required?
 | 
					    if recording_consent_required?
 | 
				
			||||||
      @settings.get_value("Room Configuration Recording") != "disabled" &&
 | 
					      @settings.get_value("Room Configuration Recording") != "disabled" &&
 | 
				
			||||||
       current_user&.role&.get_permission("can_launch_recording")
 | 
					        current_user&.role&.get_permission("can_launch_recording")
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
      current_user&.role&.get_permission("can_launch_recording")
 | 
					      current_user&.role&.get_permission("can_launch_recording")
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -159,7 +159,7 @@ class User < ApplicationRecord
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  def name_chunk
 | 
					  def name_chunk
 | 
				
			||||||
    charset = ("a".."z").to_a - %w(b i l o s) + ("2".."9").to_a - %w(5 8)
 | 
					    charset = ("a".."z").to_a - %w(b i l o s) + ("2".."9").to_a - %w(5 8)
 | 
				
			||||||
    chunk = name.parameterize[0...3]
 | 
					    chunk = name.parameterize(separator: "")[0...3]
 | 
				
			||||||
    if chunk.empty?
 | 
					    if chunk.empty?
 | 
				
			||||||
      chunk + (0...3).map { charset.to_a[rand(charset.size)] }.join
 | 
					      chunk + (0...3).map { charset.to_a[rand(charset.size)] }.join
 | 
				
			||||||
    elsif chunk.length == 1
 | 
					    elsif chunk.length == 1
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user