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