Changeset 11881 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 08/26/2009 06:47:45 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r11851 r11881 349 349 } 350 350 351 if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) ) 352 die('-1'); 353 if ( !current_user_can( 'moderate_comments' ) ) 351 if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) && !current_user_can( 'moderate_comments' ) ) 354 352 die('-1'); 355 353
Note: See TracChangeset
for help on using the changeset viewer.