summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-20 01:21:14 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-20 01:21:14 +0000
commit317b9b4e0ca3d620abec0fe0f16ed0c691996dec (patch)
treedac0bb09036781fa7a6b6f9302fe2b91212feae9 /modules/comment
parentf8952b675c8df8610e43f440bbfe48bd24dcc3cb (diff)
downloadbrdo-317b9b4e0ca3d620abec0fe0f16ed0c691996dec.tar.gz
brdo-317b9b4e0ca3d620abec0fe0f16ed0c691996dec.tar.bz2
- Patch #881578 by Gábor Hojtsy, scor: solve SA-CORE-2010-002 issues.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 02c0b9295..ce976d139 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1398,7 +1398,7 @@ function comment_access($op, $comment) {
global $user;
if ($op == 'edit') {
- return ($user->uid && $user->uid == $comment->uid && user_access('edit own comments')) || user_access('administer comments');
+ return ($user->uid && $user->uid == $comment->uid && $comment->status == COMMENT_PUBLISHED && user_access('edit own comments')) || user_access('administer comments');
}
}