Turn on auth for contact api
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 6 May 2019 17:50:52 +0000 (13:50 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 6 May 2019 17:50:52 +0000 (13:50 -0400)
Contact api needs authentitation

setup/routes.php

index dcd9d06..aabd30e 100644 (file)
@@ -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' );
+                    },
                 )
             )
         );