File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public static function create(?string $label = null): static
3737 $ gate = FilamentFlexibleContentBlockPages::config ()->getUndeletableGate ($ modelClass );
3838
3939 // If no gate set, no authorisation is wanted
40- return (!$ gate ) || Gate::allows ($ gate , $ record );
40+ return (! $ gate ) || Gate::allows ($ gate , $ record );
4141 });
4242 }
4343
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public function index(Page $page)
2020 {
2121 // check if page is published:
2222 $ viewUnpublishedPagesGate = FilamentFlexibleContentBlockPages::config ()->getViewUnpublishedPagesGate ($ page ::class);
23- if (! Auth::user () || !($ viewUnpublishedPagesGate && Gate::allows ($ viewUnpublishedPagesGate , $ page ))) {
23+ if (! Auth::user () || ! ($ viewUnpublishedPagesGate && Gate::allows ($ viewUnpublishedPagesGate , $ page ))) {
2424 if (! $ page ->isPublished ()) {
2525 SEOMeta::setRobots ('noindex ' );
2626 abort (Response::HTTP_GONE );
You can’t perform that action at this time.
0 commit comments