Chatwoot/app/policies/contact_policy.rb
2021-10-20 18:14:56 +05:30

41 lines
402 B
Ruby

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 show?
true
end
def create?
true
end
def destroy?
@account_user.administrator?
end
end