diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
index f673450d41..eac1e75344 100644
a
|
b
|
class WP_REST_Comments_Controller extends WP_REST_Controller { |
1656 | 1656 | return false; |
1657 | 1657 | } |
1658 | 1658 | |
1659 | | if ( ! current_user_can( 'moderate_comments' ) ) { |
1660 | | return false; |
| 1659 | if ( current_user_can( 'moderate_comments' ) ) { |
| 1660 | return true; |
1661 | 1661 | } |
1662 | 1662 | |
1663 | 1663 | return current_user_can( 'edit_comment', $comment->comment_ID ); |