summaryrefslogtreecommitdiffstats
path: root/xmlrpc.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-02-03 13:55:31 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-02-03 13:55:31 +0000
commit10645c4723a8414568b3b294d69bad2bf1a44341 (patch)
tree8432c991722464cb47f990a6043bb0069040dd63 /xmlrpc.php
parent8c4021c41bd9a038b21c06ee0e1ca83058a7f560 (diff)
downloadwordpress-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.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmlrpc.php b/xmlrpc.php
index ba74ec3..f9b9d1d 100644
--- a/xmlrpc.php
+++ b/xmlrpc.php
@@ -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";
}