diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-02-03 13:55:31 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-02-03 13:55:31 +0000 |
commit | 10645c4723a8414568b3b294d69bad2bf1a44341 (patch) | |
tree | 8432c991722464cb47f990a6043bb0069040dd63 /xmlrpc.php | |
parent | 8c4021c41bd9a038b21c06ee0e1ca83058a7f560 (diff) | |
download | wordpress-mu-10645c4723a8414568b3b294d69bad2bf1a44341.tar.gz wordpress-mu-10645c4723a8414568b3b294d69bad2bf1a44341.tar.xz wordpress-mu-10645c4723a8414568b3b294d69bad2bf1a44341.zip |
Merged WP 6710
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1194 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'xmlrpc.php')
-rw-r--r-- | xmlrpc.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1209,6 +1209,10 @@ class wp_xmlrpc_server extends IXR_Server { !empty($content_struct["post_type"]) && ($content_struct["post_type"] == "page") ) { + if( !current_user_can( 'edit_page', $post_ID ) ) { + return(new IXR_Error(401, __("Sorry, you do not have the right to edit this page."))); + } + $post_type = "page"; } |