• Hi there!

    i noticed a problem, if user role < than administrator, it can’t edit pages (e.g. Editor user role). To fix an issue, replace

    if ( ! current_user_can( 'manage_options' ) )
      wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) );

    with

    if ( ! current_user_can( 'manage_options' ) ) {
     return;
    }

    in \integration-with-hubspot-forms\templates\popup.php file

  • The topic ‘Fix current_user_can issue’ is closed to new replies.