pundit: convert tag aliases / implications to pundit.

This commit is contained in:
evazion
2020-03-20 18:03:00 -05:00
parent 4bb036aff1
commit 4a36b99614
9 changed files with 44 additions and 40 deletions
-4
View File
@@ -64,10 +64,6 @@ class TagRelationship < ApplicationRecord
status =~ /\Aerror:/
end
def deletable_by?(user)
user.is_admin?
end
def reject!
update!(status: "deleted")
end