19 рядки
199 Б
Ruby
19 рядки
199 Б
Ruby
# frozen_string_literal: true
|
|
|
|
class RulePolicy < ApplicationPolicy
|
|
def index?
|
|
staff?
|
|
end
|
|
|
|
def create?
|
|
admin?
|
|
end
|
|
|
|
def update?
|
|
admin?
|
|
end
|
|
|
|
def destroy?
|
|
admin?
|
|
end
|
|
end
|