From: Steve Sutton Date: Mon, 6 May 2019 17:50:52 +0000 (-0400) Subject: Turn on auth for contact api X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=253b28b9d930517fda08e4a81aba7e0f3ac1c503;p=WP-Plugins%2Fglm-member-db-contacts.git Turn on auth for contact api Contact api needs authentitation --- diff --git a/setup/routes.php b/setup/routes.php index dcd9d06..aabd30e 100644 --- a/setup/routes.php +++ b/setup/routes.php @@ -132,9 +132,9 @@ class glmAssoc_Controller_Contacts return rest_ensure_response( $contacts ); }, - // 'permission_callback' => function(){ // can require capability for this rest endpoint. - // return current_user_can( 'read' ); - // }, + 'permission_callback' => function(){ // can require capability for this rest endpoint. + return current_user_can( 'read' ); + }, ) ) );