• Jake Jackson

    (@blue-liquid-designs)


    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 entry

    Should be :
    !empty($options['useredit']) && is_user_logged_in() && (int) $current_user->id === (int) $lead['created_by'] || // Is user who created the entry

    Great plugin by the way!

    http://ww.wp.xz.cn/extend/plugins/gravity-forms-addons/

The topic ‘Edit Your Entry Bug’ is closed to new replies.