38 lines
419 B
Ruby
38 lines
419 B
Ruby
class Captain::AssistantPolicy < ApplicationPolicy
|
|
def index?
|
|
true
|
|
end
|
|
|
|
def show?
|
|
true
|
|
end
|
|
|
|
def tools?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def create?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def update?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def destroy?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def playground?
|
|
true
|
|
end
|
|
|
|
def pix?
|
|
true
|
|
end
|
|
|
|
def revenue?
|
|
true
|
|
end
|
|
end
|