Skip to content

Commit 699ff26

Browse files
stengithub-actions[bot]
authored andcommitted
Fix styling
1 parent afbf2b9 commit 699ff26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Form/Components/UndeletableToggle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/Http/Controllers/PageController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)