Make alias permissions consistent with bur/implication
This commit is contained in:
@@ -224,7 +224,7 @@ class TagAlias < ActiveRecord::Base
|
|||||||
|
|
||||||
def deletable_by?(user)
|
def deletable_by?(user)
|
||||||
return true if user.is_admin?
|
return true if user.is_admin?
|
||||||
return true if is_pending? && user.can_approve_posts?
|
return true if is_pending? && user.is_builder?
|
||||||
return true if is_pending? && user.id == creator_id
|
return true if is_pending? && user.id == creator_id
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user