chore: DRY up check_authorization method (#1351)

This commit is contained in:
Ronald Walker
2020-10-20 06:52:21 -07:00
committed by GitHub
parent bbef03edea
commit cbe9e06472
7 changed files with 7 additions and 21 deletions

View File

@@ -55,10 +55,6 @@ class Api::V1::Accounts::InboxesController < Api::V1::Accounts::BaseController
@agent_bot = AgentBot.find(params[:agent_bot]) if params[:agent_bot]
end
def check_authorization
authorize(Inbox)
end
def create_channel
case permitted_params[:channel][:type]
when 'web_widget'