Gab Social. All are welcome.
This commit is contained in:
19
app/policies/account_warning_preset_policy.rb
Normal file
19
app/policies/account_warning_preset_policy.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AccountWarningPresetPolicy < ApplicationPolicy
|
||||
def index?
|
||||
staff?
|
||||
end
|
||||
|
||||
def create?
|
||||
staff?
|
||||
end
|
||||
|
||||
def update?
|
||||
staff?
|
||||
end
|
||||
|
||||
def destroy?
|
||||
staff?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user