Edit Your Entry Bug
-
Hi,
Just letting you know there is a bug in your latest release. On line 829 of gravity-forms-addons.php you are doing the checks to see if a user can edit the current entry however you don’t ensure both variables were the same type when using === operator.
This:
!empty($options['useredit']) && is_user_logged_in() && $current_user->id === $lead['created_by'] || // Is user who created the entryShould be :
!empty($options['useredit']) && is_user_logged_in() && (int) $current_user->id === (int) $lead['created_by'] || // Is user who created the entryGreat plugin by the way!
The topic ‘Edit Your Entry Bug’ is closed to new replies.