Plugin Directory

Changeset 3233112


Ignore:
Timestamp:
02/01/2025 01:53:59 PM (14 months ago)
Author:
niaj
Message:

version 1.2.12

Location:
ghl-wizard
Files:
63 added
4 edited

Legend:

Unmodified
Added
Removed
  • ghl-wizard/trunk/ghl-wizard.php

    r3219087 r3233112  
    55 * Plugin URI:        https://betterwizard.com/lead-connector-wizard/
    66 * Description:       Connect WordPress with the popular LeadConnector CRM(HighLevel) and combine the power of automation and excellent user experience. Including memberships, content protection, WooCommerce automation, custom fields & many more...
    7  * Version:           1.2.11
     7 * Version:           1.2.12
    88 * Author:            Better Wizard
    99 * Author URI:        https://betterwizard.com/
  • ghl-wizard/trunk/inc/utility.php

    r3219087 r3233112  
    3838    if (!isset($data['sc_activation_id'])) {
    3939        set_transient($autologin_error_transient_key, __('This is a premium feature, please contact with your administrator', 'ghl-wizard'));
     40        wp_redirect(home_url());
     41        exit;
     42    }
     43
     44    //restrict it for admin users
     45    if( user_can( $user->ID, 'manage_options' ) ){
     46        set_transient($autologin_error_transient_key, __('Admin is not allowed to auto logged in', 'ghl-wizard'));
    4047        wp_redirect(home_url());
    4148        exit;
  • ghl-wizard/trunk/inc/wp_user.php

    r3211246 r3233112  
    213213            }
    214214           
    215             $data = get_option( 'leadconnectorwizardpro_license_options' );
    216 
    217215            $contact_email          = $contact_data->email;
    218216            $first_name             = $contact_data->first_name;
    219217            $last_name              = $contact_data->last_name;
     218            $lcw_create_wp_user     = isset( $contact_data->customData->lcw_create_wp_user ) ? $contact_data->customData->lcw_create_wp_user : 0;
    220219            $need_to_update         = isset( $contact_data->customData->lcw_contact_update ) ? $contact_data->customData->lcw_contact_update : 0;
    221220            $lcw_add_wp_user_role   = isset( $contact_data->customData->lcw_add_wp_user_role ) ? $contact_data->customData->lcw_add_wp_user_role : false;
    222221            $lcw_remove_wp_user_role= isset( $contact_data->customData->lcw_remove_wp_user_role ) ? $contact_data->customData->lcw_remove_wp_user_role : false;
     222
     223            // unblock other webhooks other than LC Wizard
     224            if ( $lcw_create_wp_user === 1 || $need_to_update === 1 || !empty( $lcw_add_wp_user_role ) || !empty( $lcw_remove_wp_user_role ) ){
     225                // go further
     226            } else {
     227                return;
     228            }
     229
     230            $data = get_option( 'leadconnectorwizardpro_license_options' );
    223231
    224232            // check if user exist & get user id
  • ghl-wizard/trunk/readme.txt

    r3219087 r3233112  
    152152== Changelog ==
    153153
     154= 1.2.12 =
     155* Bug Fix: Disabled autologin feature for Admin
     156* Bug Fix: Unblocked other webhooks other than LC Wizard.
     157
    154158= 1.2.11 =
    155159* Feature Added: Auto login & create new WordPress user from workflow.
Note: See TracChangeset for help on using the changeset viewer.