2017-11-11 11:23:33 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DomainBlockPolicy < ApplicationPolicy
|
|
|
|
def index?
|
2018-04-14 23:49:24 -07:00
|
|
|
staff?
|
2017-11-11 11:23:33 -08:00
|
|
|
end
|
|
|
|
|
|
|
|
def show?
|
2018-04-14 23:49:24 -07:00
|
|
|
staff?
|
2017-11-11 11:23:33 -08:00
|
|
|
end
|
|
|
|
|
|
|
|
def create?
|
2018-04-14 23:49:24 -07:00
|
|
|
staff?
|
2017-11-11 11:23:33 -08:00
|
|
|
end
|
|
|
|
|
|
|
|
def destroy?
|
2018-04-14 23:49:24 -07:00
|
|
|
staff?
|
2017-11-11 11:23:33 -08:00
|
|
|
end
|
|
|
|
end
|