Correct the logic as there is no publish_post cap.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-12-08 17:07:55 +00:00
parent b3bc43ab49
commit fe92a01932
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);