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