Skip to content

Commit c0763bd

Browse files
authored
gpep-disable-passing-through-entries-without-a-token.php: Updated to only accept valid tokens.
1 parent 2eb6aeb commit c0763bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp-easy-passthrough/gpep-disable-passing-through-entries-without-a-token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* https://gravitywiz.com/documentation/gravity-forms-easy-passthrough/
55
*/
66
add_filter( 'gpep_bypass_session_init', function() {
7-
if ( ! rgget( 'ep_token' ) ) {
7+
if ( ! rgget( 'ep_token' ) || ! gp_easy_passthrough()->get_entry_for_token( rgget( 'ep_token' ) ) ) {
88
$session = gp_easy_passthrough()->session_manager();
99
$session->reset();
1010
}

0 commit comments

Comments
 (0)