mirror of
https://github.com/discourse/discourse.git
synced 2025-06-20 20:01:38 +08:00
admins/moderators should not receive "body is too similar" when editing
a regular user's post.
This commit is contained in:
@ -63,7 +63,7 @@ class Post < ActiveRecord::Base
|
|||||||
# Stop us from posting the same thing too quickly
|
# Stop us from posting the same thing too quickly
|
||||||
def unique_post_validator
|
def unique_post_validator
|
||||||
return if SiteSetting.unique_posts_mins == 0
|
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
|
# If the post is empty, default to the validates_presence_of
|
||||||
return if raw.blank?
|
return if raw.blank?
|
||||||
|
Reference in New Issue
Block a user