Add whitelist mode (#11291)

This commit is contained in:
Eugen Rochko
2019-07-30 11:10:46 +02:00
committed by GitHub
parent 85b7b565de
commit 24552b5160
44 changed files with 302 additions and 53 deletions

View File

@ -0,0 +1,11 @@
# frozen_string_literal: true
class DomainAllowPolicy < ApplicationPolicy
def create?
admin?
end
def destroy?
admin?
end
end