Add whitelist mode (#11291)
This commit is contained in:
11
app/policies/domain_allow_policy.rb
Normal file
11
app/policies/domain_allow_policy.rb
Normal file
@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class DomainAllowPolicy < ApplicationPolicy
|
||||
def create?
|
||||
admin?
|
||||
end
|
||||
|
||||
def destroy?
|
||||
admin?
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user