Skip to content

Commit 2465b18

Browse files
authored
[Bug] Settings page authorization (alexjustesen#773)
1 parent 198c1fb commit 2465b18

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

app/Filament/Pages/Settings/GeneralPage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class GeneralPage extends SettingsPage
2828
public function mount(): void
2929
{
3030
abort_unless(auth()->user()->is_admin, 403);
31+
32+
$this->fillForm();
3133
}
3234

3335
public static function shouldRegisterNavigation(): bool

app/Filament/Pages/Settings/InfluxDbPage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class InfluxDbPage extends SettingsPage
2424
public function mount(): void
2525
{
2626
abort_unless(auth()->user()->is_admin, 403);
27+
28+
$this->fillForm();
2729
}
2830

2931
public static function shouldRegisterNavigation(): bool

app/Filament/Pages/Settings/NotificationPage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class NotificationPage extends SettingsPage
3232
public function mount(): void
3333
{
3434
abort_unless(auth()->user()->is_admin, 403);
35+
36+
$this->fillForm();
3537
}
3638

3739
public static function shouldRegisterNavigation(): bool

app/Filament/Pages/Settings/ThresholdsPage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class ThresholdsPage extends SettingsPage
2424
public function mount(): void
2525
{
2626
abort_unless(auth()->user()->is_admin, 403);
27+
28+
$this->fillForm();
2729
}
2830

2931
public static function shouldRegisterNavigation(): bool

0 commit comments

Comments
 (0)