Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

up-port 8d828e1 - check goodtoken while approving comments

  • Loading branch information...
commit d8bcff11a76deda1f3522315f225a0491e479abe 1 parent 3c7dfd9
@ophian ophian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  include/functions_comments.inc.php
View
2  include/functions_comments.inc.php
@@ -658,7 +658,7 @@ function serendipity_approveComment($cid, $entry_id, $force = false, $moderate =
$rs = serendipity_db_query($sql, true);
// Check for adminEntriesMaintainOthers
- if (!$force && $rs['entry_authorid'] != $serendipity['authorid'] && !serendipity_checkPermission('adminEntriesMaintainOthers')) {
+ if (!$force && !$goodtoken && $rs['entry_authorid'] != $serendipity['authorid'] && !serendipity_checkPermission('adminEntriesMaintainOthers')) {
return false; // wrong user having no adminEntriesMaintainOthers right
}
Please sign in to comment.
Something went wrong with that request. Please try again.