Chatwoot/app/policies/contact_policy.rb

46 lines
451 B
Ruby
Raw Normal View History

class ContactPolicy < ApplicationPolicy
def index?
true
end
def active?
true
end
def import?
@account_user.administrator?
end
def search?
true
end
def filter?
true
end
def update?
true
end
def contactable_inboxes?
true
end
def destroy_custom_attributes?
true
end
def show?
true
end
def create?
2019-10-20 08:47:26 +00:00
true
end
def destroy?
@account_user.administrator?
end
end