45e43b0b89
- 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 )
33 lines
317 B
Ruby
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
|