| @@ -670,8 +670,9 @@ | ||
| 670 | 670 | include_once( 'ph-meta-box-functions.php' ); |
| 671 | 671 | |
| 672 | 672 | // Classes |
| 673 | 673 | include_once( 'class-ph-admin-post-types.php' ); |
| 674 | + include_once( 'class-ph-admin-onboarding.php' ); | |
| 674 | 675 | include_once( dirname(PH_PLUGIN_FILE) . '/includes/class-ph-ai-service.php' ); |
| 675 | 676 | |
| 676 | 677 | // Classes we only need if the ajax is not-ajax |
| 677 | 678 | if ( ! is_ajax() ) { |
| @@ -950,13 +951,13 @@ | ||
| 950 | 951 | delete_transient( '_ph_activation_redirect' ); |
| 951 | 952 | |
| 952 | 953 | // Don't do redirect if part of multisite, doing batch-activate, or if no permission |
| 953 | 954 | // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only admin list display or query; no state change. |
| 954 | - if ( is_network_admin() || isset( $_GET['activate-multi'] ) || ! current_user_can( 'manage_propertyhive' ) ) { | |
| 955 | + if ( is_network_admin() || isset( $_GET['activate-multi'] ) || ! current_user_can( 'manage_options' ) ) { | |
| 955 | 956 | return; |
| 956 | 957 | } |
| 957 | 958 | |
| 958 | - wp_safe_redirect( admin_url( 'index.php?page=ph-installed' ) ); | |
| 959 | + wp_safe_redirect( admin_url( 'index.php?page=ph-onboarding' ) ); | |
| 959 | 960 | exit; |
| 960 | 961 | } |
| 961 | 962 | } |
| 962 | 963 | |