Browse Source

! quick edit works also without approve_post permission [Bug 4877] - please double check

emanuele 13 years ago
parent
commit
a1b2a29de7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Post.php

+ 1 - 1
Sources/Post.php

@@ -2654,7 +2654,7 @@ function JavaScriptModify()
 			FROM {db_prefix}messages AS m
 				INNER JOIN {db_prefix}topics AS t ON (t.id_topic = {int:current_topic})
 			WHERE m.id_msg = {raw:id_msg}
-				AND m.id_topic = {int:current_topic}' . (allowedTo('approve_posts') ? '' : (!$modSettings['postmod_active'] ? '
+				AND m.id_topic = {int:current_topic}' . (allowedTo('modify_any') || allowedTo('approve_posts') ? '' : (!$modSettings['postmod_active'] ? '
 				AND (m.id_member != {int:guest_id} AND m.id_member = {int:current_member})' : '
 				AND (m.approved = {int:is_approved} OR (m.id_member != {int:guest_id} AND m.id_member = {int:current_member}))')),
 			array(