Chatwoot/app/controllers/api/v1/accounts/kbase/base_controller.rb

10 lines
220 B
Ruby
Raw Normal View History

class Api::V1::Accounts::Kbase::BaseController < Api::V1::Accounts::BaseController
before_action :portal
private
def portal
@portal ||= Current.account.kbase_portals.find_by(id: params[:portal_id])
end
end