Ticket #5313: xmlrpc.php.diff
| File xmlrpc.php.diff, 677 bytes (added by , 18 years ago) |
|---|
-
xmlrpc.php
1379 1379 !empty($content_struct["post_type"]) 1380 1380 && ($content_struct["post_type"] == "page") 1381 1381 ) { 1382 if( !current_user_can( 'edit_page', $post_ID ) ) { 1383 return(new IXR_Error(401, __("Sorry, you do not have the right to edit this page."))); 1384 } 1385 1382 1386 $post_type = "page"; 1383 1387 } 1384 1388 1385 // Edit page caps are checked in editPage. Just check post here.1386 1389 if ( ( 'post' == $post_type ) && !current_user_can('edit_post', $post_ID) ) 1387 1390 return new IXR_Error(401, __('Sorry, you can not edit this post.')); 1388 1391