| @@ -83,11 +83,11 @@ | ||
| 83 | 83 | * @return JSON |
| 84 | 84 | */ |
| 85 | 85 | public function get_settings() { |
| 86 | 86 | $settings = apply_filters( 'timetics_settings', timetics_get_settings() ); |
| 87 | - $is_admin = current_user_can( 'manage_timetics' ); | |
| 87 | + $role = !current_user_can( 'manage_timetics' ); | |
| 88 | 88 | //only run for non user capabilities |
| 89 | - if ( ! $is_admin ) { | |
| 89 | + if ( $role ) { | |
| 90 | 90 | $exclude_settings = $this->exclude_settings_for_customer(); |
| 91 | 91 | foreach($settings as $key => $setting){ |
| 92 | 92 | if( in_array( $key, $exclude_settings )){ |
| 93 | 93 | unset( $settings[$key] ); |
| @@ -130,9 +130,9 @@ | ||
| 130 | 130 | $custom_domain_data = [ |
| 131 | 131 | 'custom_domain_url' => $options['custom_domain_url'], |
| 132 | 132 | 'network_slug' => $options['network_slug'], |
| 133 | 133 | ]; |
| 134 | - do_action('timetics_custom_domain_data', $custom_domain_data); | |
| 134 | + do_action('custom_domain_data', $custom_domain_data); | |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | |
| 138 | 138 | if ( !empty($options['schedule']) && $options['schedule'] && apply_filters('timetics/staff/member/availability', false)) { |
| @@ -275,11 +275,12 @@ | ||
| 275 | 275 | "google_app_client_secret", |
| 276 | 276 | "zoom_client_id", |
| 277 | 277 | "zoom_client_secret", |
| 278 | 278 | "zoom_auth_redirect_uri", |
| 279 | + "apple_calendar", | |
| 280 | + "outlook_calendar", | |
| 279 | 281 | "fluentcrm_webhook", |
| 280 | 282 | "zapier_webhook", |
| 281 | - "pabbly_webhook", | |
| 282 | 283 | "twillo_account_id", |
| 283 | 284 | "twillo_token", |
| 284 | 285 | "twillo_phone_number", |
| 285 | 286 | "booking_created_customer", |
| @@ -293,10 +294,10 @@ | ||
| 293 | 294 | "stripe_pub_key", |
| 294 | 295 | "stripe_secret_key", |
| 295 | 296 | "paypal_client_id", |
| 296 | 297 | "paypal_client_secret", |
| 297 | - "outlook_app_client_id", | |
| 298 | - "outlook_app_client_secret", | |
| 298 | + "outlook_client_id", | |
| 299 | + "outlook_client_secret", | |
| 299 | 300 | "outlook_auth_redirect_uri", |
| 300 | 301 | ]; |
| 301 | 302 | |
| 302 | 303 | |