Support adding and removing attributes of error templates

This commit is contained in:
Maximilian Grundke
2017-07-12 21:25:18 +02:00
parent 24fd142d3c
commit 28605fbe9b
8 changed files with 67 additions and 3 deletions

View File

@ -1,3 +1,9 @@
class ErrorTemplatePolicy < AdminOnlyPolicy
def add_attribute?
admin?
end
def remove_attribute?
admin?
end
end