Skip to content

Commit

Permalink
fixes the can view logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bezhanSalleh committed Nov 12, 2024
1 parent 2ffaada commit c6f0717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/CanViewWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function canView(): bool
return true;
}

if ($globalStatus && ! $filamentDashboardStatus && ! request()->routeIs($filamentPagesRoutePrefix . 'dashboard') && ! request()->routeIs($filamentPagesRoutePrefix . 'filament-google-analytics-dashboard')) {
if ($globalStatus && ! request()->routeIs($filamentPagesRoutePrefix . 'dashboard') && ! request()->routeIs($filamentPagesRoutePrefix . 'filament-google-analytics-dashboard')) {
return true;
}

Expand Down

0 comments on commit c6f0717

Please sign in to comment.