Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions app/Filament/Pages/ApiTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ class ApiTokens extends Page implements HasForms, HasInfolists, HasTable

public ?string $token = '';

/**
* NOTE: This page is disabled until the api feature is ready.
*/
public static function canAccess(): bool
{
return Auth::user()->is_admin;
return false;
}

public function tokenInfolist(Infolist $infolist): Infolist
Expand Down Expand Up @@ -84,10 +87,10 @@ public function table(Table $table): Table
CheckboxList::make('token_abilities')
->label('Abilities')
->options([
'result:read' => 'Read results',
'result-read' => 'Read results',
])
->descriptions([
'result:read' => new HtmlString('Allow the token to retrieve result data.'),
'result-read' => new HtmlString('Allow the token to retrieve result data.'),
])
->required()
->bulkToggleable(),
Expand Down