Chatwoot/app/policies/contact_policy.rb

19 lines
208 B
Ruby
Raw Normal View History

class ContactPolicy < ApplicationPolicy
def index?
@user.administrator?
end
def update?
@user.administrator?
end
def show?
@user.administrator?
end
def create?
true
end
end