pundit: convert tag aliases / implications to pundit.

This commit is contained in:
evazion
2020-03-17 17:42:29 -05:00
parent 4bb036aff1
commit 4a36b99614
9 changed files with 44 additions and 40 deletions

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