FIX: make staff_edit_locks_post work with download_remote_images_to_local

This commit is contained in:
Maja Komel
2018-12-03 14:14:59 +11:00
committed by Sam
parent 125bb46052
commit 6121d11187
2 changed files with 13 additions and 1 deletions
+1
View File
@@ -176,6 +176,7 @@ class PostRevisor
!@post.wiki? &&
@fields.has_key?('raw') &&
@editor.staff? &&
@editor != Discourse.system_user &&
!@post.user.staff?
)
PostLocker.new(@post, @editor).lock