From 253b28b9d930517fda08e4a81aba7e0f3ac1c503 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 6 May 2019 13:50:52 -0400 Subject: [PATCH] Turn on auth for contact api Contact api needs authentitation --- setup/routes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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' ); + }, ) ) ); -- 2.17.1