| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.13 Free | |
| 4 | + * @version 2.1.37 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <info@fireplugins.com> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2026 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2025 FirePlugins All Rights Reserved | |
| 9 | 9 | * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace FireBox\Core; |
| @@ -66,9 +66,11 @@ | ||
| 66 | 66 | * @return boolean |
| 67 | 67 | */ |
| 68 | 68 | public function canRun() |
| 69 | 69 | { |
| 70 | - if (is_user_logged_in() && current_user_can('read_fireboxes') && !get_option('hide-admin-bar', false)) | |
| 70 | + if (is_user_logged_in() && | |
| 71 | + current_user_can('manage_options') && | |
| 72 | + !get_option('hide-admin-bar', false)) | |
| 71 | 73 | { |
| 72 | 74 | return true; |
| 73 | 75 | } |
| 74 | 76 | |
| @@ -236,9 +238,9 @@ | ||
| 236 | 238 | [ |
| 237 | 239 | 'parent' => 'firebox-menu', |
| 238 | 240 | 'id' => 'firebox-menu-upgrade', |
| 239 | 241 | 'title' => fpframework()->_('FPF_UPGRADE_TO_PRO'), |
| 240 | - 'href' => sprintf(FBOX_GO_PRO_URL, 'pro'), | |
| 242 | + 'href' => FBOX_GO_PRO_URL, | |
| 241 | 243 | 'meta' => [ |
| 242 | 244 | 'class' => 'firebox-go-pro-yellow-link' |
| 243 | 245 | ] |
| 244 | 246 | ] |