diff --git a/src/Rest/SitkaRestController.php b/src/Rest/SitkaRestController.php index 51088bb..d749533 100644 --- a/src/Rest/SitkaRestController.php +++ b/src/Rest/SitkaRestController.php @@ -25,6 +25,7 @@ public function register_routes() { register_rest_route(static::API_NAMESPACE, '/completions', [ 'methods' => 'GET', 'callback' => [$this, 'completions_action'], + 'permission_callback' => '__return_true' ]); }