Correct the logic as there is no publish_post cap.

git-svn-id: https://develop.svn.wordpress.org/trunk@16802 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-12-08 17:07:55 +00:00
parent 10244cc066
commit dd8cff8381
1 changed files with 1 additions and 1 deletions

View File

@ -3277,7 +3277,7 @@ class wp_xmlrpc_server extends IXR_Server {
do_action('xmlrpc_call', 'mt.publishPost');
if ( !current_user_can('publish_post', $post_ID) )
if ( !current_user_can('publish_posts') || !current_user_can('edit_post', $post_ID) )
return new IXR_Error(401, __('Sorry, you cannot publish this post.'));
$postdata = wp_get_single_post($post_ID,ARRAY_A);