pundit: convert tag aliases / implications to pundit.
This commit is contained in:
5
app/policies/tag_alias_policy.rb
Normal file
5
app/policies/tag_alias_policy.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class TagAliasPolicy < ApplicationPolicy
|
||||
def destroy?
|
||||
user.is_admin?
|
||||
end
|
||||
end
|
||||
5
app/policies/tag_implication_policy.rb
Normal file
5
app/policies/tag_implication_policy.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class TagImplicationPolicy < ApplicationPolicy
|
||||
def destroy?
|
||||
user.is_admin?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user