2017-11-11 11:23:33 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DomainBlockPolicy < ApplicationPolicy
|
|
|
|
def index?
|
|
|
|
admin?
|
|
|
|
end
|
|
|
|
|
|
|
|
def show?
|
|
|
|
admin?
|
|
|
|
end
|
|
|
|
|
|
|
|
def create?
|
|
|
|
admin?
|
|
|
|
end
|
|
|
|
|
2020-12-14 00:06:34 -08:00
|
|
|
def update?
|
|
|
|
admin?
|
|
|
|
end
|
|
|
|
|
2017-11-11 11:23:33 -08:00
|
|
|
def destroy?
|
|
|
|
admin?
|
|
|
|
end
|
|
|
|
end
|