admins/moderators should not receive "body is too similar" when editing

a regular user's post.
This commit is contained in:
Robin Ward 2013-04-05 15:38:03 -04:00
parent 72b4f41254
commit fe8d2377e8
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class Post < ActiveRecord::Base
# Stop us from posting the same thing too quickly
def unique_post_validator
return if SiteSetting.unique_posts_mins == 0
return if user.admin? || user.moderator?
return if acting_user.admin? || acting_user.moderator?
# If the post is empty, default to the validates_presence_of
return if raw.blank?