projects
/
WP-Plugins
/
glm-member-db-contacts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac21a32
)
Turn on auth for contact api
author
Steve Sutton
<steve@gaslightmedia.com>
Mon, 6 May 2019 17:50:52 +0000
(13:50 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Mon, 6 May 2019 17:50:52 +0000
(13:50 -0400)
Contact api needs authentitation
setup/routes.php
patch
|
blob
|
history
diff --git
a/setup/routes.php
b/setup/routes.php
index
dcd9d06
..
aabd30e
100644
(file)
--- 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' );
+ },
)
)
);