Skip to content

Commit

Permalink
overide get_items_permissions_check
Browse files Browse the repository at this point in the history
  • Loading branch information
Salil Kothadia committed Jul 12, 2018
1 parent dd585e1 commit d596a77
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/endpoints/class-wp-rest-multiple-posttype-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ public function register_routes()
));
}

/**
* Check if a given request has access to get items
*
* @param WP_REST_Request $request
* @return boolean
*/
public function get_items_permissions_check($request)
{
return true;
}

/**
* Check if a given request has access to get items
*
Expand Down

0 comments on commit d596a77

Please sign in to comment.