From 8a682722d1b64ba299997ff3f6099db353fab43a Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 15 Jul 2005 11:12:16 +0000 Subject: Merge from WP SVN. git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@27 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-admin/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-inst/wp-admin/edit.php') diff --git a/wp-inst/wp-admin/edit.php b/wp-inst/wp-admin/edit.php index 052540f..daef277 100644 --- a/wp-inst/wp-admin/edit.php +++ b/wp-inst/wp-admin/edit.php @@ -252,7 +252,7 @@ $comment_status = wp_get_comment_status($comment->comment_ID); @ $authordata->user_level) or ($user_login == $authordata->user_login)) { + if ( current_user_can('edit_post', $post->ID) ) { echo "[ comment_ID."\">" . __('Edit') . ""; echo " - ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('" . sprintf(__("You are about to delete this comment by \'%s\'\\n \'OK\' to delete, \'Cancel\' to stop."), $comment->comment_author) . "')\">" . __('Delete') . " "; if ( ('none' != $comment_status) && ($user_level >= 3) ) { -- cgit