mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 01:15:26 +08:00
FIX: Staff can create and edit posts even if a topic is in slow mode. (#11057)
Additionally, ninja edits are no longer restricted.
This commit is contained in:
@ -159,7 +159,7 @@ class PostCreator
|
||||
return false
|
||||
end
|
||||
|
||||
if @topic&.slow_mode_seconds.to_i > 0
|
||||
if guardian.affected_by_slow_mode?(@topic)
|
||||
tu = TopicUser.find_by(user: @user, topic: @topic)
|
||||
|
||||
if tu&.last_posted_at
|
||||
|
Reference in New Issue
Block a user