Fix #3448: Lower the limit for tag category changes.

Also allow admins to bypass all restrictions.
This commit is contained in:
evazion
2017-12-23 13:19:36 -06:00
parent 2385933e56
commit 91592b2f18
3 changed files with 26 additions and 3 deletions

View File

@@ -949,7 +949,8 @@ class Tag < ApplicationRecord
end
def editable_by?(user)
return true if !is_locked? && user.is_builder? && post_count < 10_000
return true if user.is_admin?
return true if !is_locked? && user.is_builder? && post_count < 1_000
return true if !is_locked? && user.is_member? && post_count < 50
return false
end