mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			266 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			266 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
class Api::V1::Widget::DirectUploadsController < ActiveStorage::DirectUploadsController
 | 
						|
  include WebsiteTokenHelper
 | 
						|
  before_action :set_web_widget
 | 
						|
  before_action :set_contact
 | 
						|
 | 
						|
  def create
 | 
						|
    return if @contact.nil? || @current_account.nil?
 | 
						|
 | 
						|
    super
 | 
						|
  end
 | 
						|
end
 |