diff --git a/src/UnifiServiceProvider.php b/src/UnifiServiceProvider.php index a2e08d2..80ef368 100644 --- a/src/UnifiServiceProvider.php +++ b/src/UnifiServiceProvider.php @@ -43,17 +43,6 @@ class UnifiServiceProvider extends ServiceProvider // groups, plus pages granted via the Settings → Access tab. The // shell also folds these grants back into User::can()/allPermissions // so the route-level permission middleware passes for grantees. - try { - app(\App\Support\NavVisibilityRegistry::class)->register( - 'unifi.', - fn (\App\Models\User $user) => $this->visibleUnifiNavItemIdsFor($user), - ); - } catch (\Throwable) { - // Shell may not have the registry yet (older shell version). - // Sidebar will fall back to legacy permission filter. - } - - if ($this->app->runningInConsole()) { $this->commands([ Console\CheckWebhooks::class,