| @@ -157,11 +157,8 @@ | ||
| 157 | 157 | $baseUrl = fluent_boards_page_url(); |
| 158 | 158 | |
| 159 | 159 | do_action('fluent_boards/rendering_app'); |
| 160 | 160 | |
| 161 | - // For subtask sync | |
| 162 | - UpdateHandler::maybeSubtaskGroupSync(); | |
| 163 | - | |
| 164 | 161 | App::make('view')->render('admin.menu', [ |
| 165 | 162 | 'name' => $name, |
| 166 | 163 | 'slug' => $slug, |
| 167 | 164 | 'menuItems' => $this->getMenuItems($app), |
| @@ -391,8 +388,9 @@ | ||
| 391 | 388 | 'has_pro' => !!defined('FLUENT_BOARDS_PRO_VERSION'), |
| 392 | 389 | 'upgrade_url' => fluent_boards_get_upgrade_url(), |
| 393 | 390 | 'board_solid_colors' => Constant::BOARD_BACKGROUND_DEFAULT_SOLID_COLORS, |
| 394 | 391 | 'board_gradient_colors' => Constant::BOARD_BACKGROUND_DEFAULT_GRADIENT_COLORS, |
| 392 | + 'label_color_presets' => Constant::LABEL_COLOR_PRESETS, | |
| 395 | 393 | 'ai_features' => [ |
| 396 | 394 | 'enabled' => (new \FluentBoards\App\Services\AiService())->isReady(), |
| 397 | 395 | ], |
| 398 | 396 | 'me' => [ |
| @@ -416,8 +414,10 @@ | ||
| 416 | 414 | 'trans' => TransStrings::getStrings(), |
| 417 | 415 | 'is_new' => Board::count() == 0 ? 'yes' : 'no', |
| 418 | 416 | 'is_onboarded' => $onboardingValue, |
| 419 | 417 | 'render_in' => is_admin() ? 'admin' : 'front', |
| 418 | + // Gates wp-admin links (WP profile, CRM, application passwords) so the frontend portal shows no admin traces. | |
| 419 | + 'can_access_wp_admin' => (bool) apply_filters('fluent_boards/can_access_wp_admin', is_admin() || current_user_can('manage_options'), $currentUser), | |
| 420 | 420 | 'dashboard_notices' => apply_filters('fluent_boards/dashboard_notices', []), |
| 421 | 421 | 'is_beta' => defined('FLUENT_BOARDS_PRO_VERSION') && !defined('FLUENT_BOARDS_PRO_LIVE'), |
| 422 | 422 | 'advanced_modules' => fluent_boards_get_pref_settings(), |
| 423 | 423 | 'crm_base_url' => defined('FLUENTCRM') ? fluentcrm_menu_url_base() : '', |