Chatwoot/app/policies/contact_policy.rb
Sojan Jose 45e43b0b89
feat: Contactable Inboxes API (#2101)
- Add endpoint which lists inboxes through which a contact can be contacted
- Conversation creation API auto-creates contact_inbox for specific channels [ Twilio, email, api]
- Ability to send the initial message payload along with the conversation creation
- Fixes #1678 ( issue saving additional attributes for conversation )
2021-04-15 15:13:01 +05:30

33 lines
317 B
Ruby

class ContactPolicy < ApplicationPolicy
def index?
true
end
def active?
true
end
def import?
@account_user.administrator?
end
def search?
true
end
def update?
true
end
def contactable_inboxes?
true
end
def show?
true
end
def create?
true
end
end