This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
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
|