This commit is contained in:
Toks
2013-04-29 17:40:29 -04:00
parent e1c34df22e
commit 78281a9b4c
3 changed files with 6 additions and 2 deletions

View File

@@ -561,6 +561,10 @@ class Tag < ActiveRecord::Base
end
end
def editable_by?(user)
user.is_builder? || (user.is_member? && post_count <= 50)
end
include ApiMethods
include CountMethods
extend ViewCountMethods