Skip to content

Commit cc6d0dd

Browse files
gpsa-auto-allow-administrator-access.php: Updated snippet to properly return $has_access.
1 parent ae58d74 commit cc6d0dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gp-submit-to-access/gpsa-auto-allow-administrator-access.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
* https://gravitywiz.com/documentation/gravity-forms-submit-to-access/
55
*/
66
add_filter( 'gpsa_has_access', function( $has_access ) {
7-
return current_user_can( 'administrator' );
7+
if ( current_user_can( 'administrator' ) ) {
8+
return true;
9+
}
10+
11+
return $has_access;
812
} );

0 commit comments

Comments
 (0)