2019-08-14 09:48:44 +00:00
|
|
|
class ContactPolicy < ApplicationPolicy
|
|
|
|
def index?
|
2020-05-26 17:08:48 +00:00
|
|
|
true
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|
|
|
|
|
2020-10-05 18:00:27 +00:00
|
|
|
def active?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
2021-02-03 13:54:51 +00:00
|
|
|
def import?
|
|
|
|
@account_user.administrator?
|
|
|
|
end
|
|
|
|
|
2020-08-10 06:45:29 +00:00
|
|
|
def search?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
2021-10-20 12:44:56 +00:00
|
|
|
def filter?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
def update?
|
2020-05-26 17:08:48 +00:00
|
|
|
true
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|
|
|
|
|
2021-04-15 09:43:01 +00:00
|
|
|
def contactable_inboxes?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
2019-08-14 09:48:44 +00:00
|
|
|
def show?
|
2020-05-26 17:08:48 +00:00
|
|
|
true
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def create?
|
2019-10-20 08:47:26 +00:00
|
|
|
true
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|
2021-09-23 07:22:49 +00:00
|
|
|
|
|
|
|
def destroy?
|
|
|
|
@account_user.administrator?
|
|
|
|
end
|
2019-08-14 09:48:44 +00:00
|
|
|
end
|