Chore: API Improvements (#3469)
This commit is contained in:
7
app/presenters/agent_bot_presenter.rb
Normal file
7
app/presenters/agent_bot_presenter.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class AgentBotPresenter < SimpleDelegator
|
||||
def access_token
|
||||
return if account_id.blank?
|
||||
|
||||
Current.account.id == account_id ? super&.token : nil
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user