Skip to content

Commit 95cdaf2

Browse files
authored
[Chore] Disable API tokens page until API feature is ready (alexjustesen#1970)
1 parent caa27d9 commit 95cdaf2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/Filament/Pages/ApiTokens.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ class ApiTokens extends Page implements HasForms, HasInfolists, HasTable
4343

4444
public ?string $token = '';
4545

46+
/**
47+
* NOTE: This page is disabled until the api feature is ready.
48+
*/
4649
public static function canAccess(): bool
4750
{
48-
return Auth::user()->is_admin;
51+
return false;
4952
}
5053

5154
public function tokenInfolist(Infolist $infolist): Infolist
@@ -84,10 +87,10 @@ public function table(Table $table): Table
8487
CheckboxList::make('token_abilities')
8588
->label('Abilities')
8689
->options([
87-
'result:read' => 'Read results',
90+
'result-read' => 'Read results',
8891
])
8992
->descriptions([
90-
'result:read' => new HtmlString('Allow the token to retrieve result data.'),
93+
'result-read' => new HtmlString('Allow the token to retrieve result data.'),
9194
])
9295
->required()
9396
->bulkToggleable(),

0 commit comments

Comments
 (0)