97ad39713b
Co-authored-by: Sojan <sojan@pepalo.com>
21 lines
333 B
Ruby
21 lines
333 B
Ruby
class LabelPolicy < ApplicationPolicy
|
|
def index?
|
|
@account_user.administrator? || @account_user.agent?
|
|
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
|