| @@ -17,9 +17,10 @@ | ||
| 17 | 17 | require_once __DIR__ . '/Http/migration_api.php'; |
| 18 | 18 | }); |
| 19 | 19 | |
| 20 | 20 | add_filter('fluent_community/portal_settings_menu_items', function ($menuItems) { |
| 21 | - if (!\FluentCommunity\App\Services\Helper::isSiteAdmin()) { | |
| 21 | + // Matches the route policy: migrations are super-admin only. | |
| 22 | + if (!\FluentCommunity\App\Services\Helper::isSuperAdmin()) { | |
| 22 | 23 | return $menuItems; |
| 23 | 24 | } |
| 24 | 25 | |
| 25 | 26 | $menuItems['manage_migrations'] = [ |