mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: Don't lock a post on edit unless the raw changes
This commit is contained in:
parent
5c93d07d2a
commit
b3883f5c32
2 changed files with 18 additions and 3 deletions
|
@ -167,9 +167,12 @@ class PostRevisor
|
|||
end
|
||||
|
||||
# Lock the post by default if the appropriate setting is true
|
||||
if SiteSetting.staff_edit_locks_post? &&
|
||||
@editor.staff? &&
|
||||
!@post.user.staff?
|
||||
if (
|
||||
SiteSetting.staff_edit_locks_post? &&
|
||||
@fields.has_key?('raw') &&
|
||||
@editor.staff? &&
|
||||
!@post.user.staff?
|
||||
)
|
||||
PostLocker.new(@post, @editor).lock
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue