Changeset 6710

Show
Ignore:
Timestamp:
02/02/08 17:57:20 (5 months ago)
Author:
ryan
Message:

Add edit_page cap check. Props josephscott. see #5313

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/xmlrpc.php

    r6504 r6710  
    11971197            && ($content_struct["post_type"] == "page") 
    11981198        ) { 
     1199            if( !current_user_can( 'edit_page', $post_ID ) ) { 
     1200                return(new IXR_Error(401, __("Sorry, you do not have the right to edit this page."))); 
     1201            } 
     1202 
    11991203            $post_type = "page"; 
    12001204        }