22 lines
312 B
Ruby
22 lines
312 B
Ruby
|
class CampaignPolicy < ApplicationPolicy
|
||
|
def index?
|
||
|
@account_user.administrator?
|
||
|
end
|
||
|
|
||
|
def update?
|
||
|
@account_user.administrator?
|
||
|
end
|
||
|
|
||
|
def show?
|
||
|
@account_user.administrator?
|
||
|
end
|
||
|
|
||
|
def create?
|
||
|
@account_user.administrator?
|
||
|
end
|
||
|
|
||
|
def destroy?
|
||
|
@account_user.administrator?
|
||
|
end
|
||
|
end
|