Chatwoot/app/controllers/api/v1/widget/direct_uploads_controller.rb

12 lines
266 B
Ruby
Raw Normal View History

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