We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 49c4af3 + fcde3b7 commit c167df8Copy full SHA for c167df8
app/Filament/Resources/UserResource.php
@@ -98,7 +98,7 @@ public static function table(Table $table): Table
98
->actions([
99
Tables\Actions\EditAction::make(),
100
Tables\Actions\Action::make('Kick User')
101
- ->authorize('kick')
+ ->authorize('kick_user')
102
->color('danger')
103
->icon('heroicon-m-user-minus')
104
->requiresConfirmation()
@@ -110,7 +110,8 @@ public static function table(Table $table): Table
110
->success()
111
->title('The user has been removed from the company.')
112
->send();
113
- }),
+ })
114
+ ->hidden(fn ($record) => $record->id === auth()->id()),
115
])
116
->bulkActions([
117
Tables\Actions\BulkActionGroup::make([
0 commit comments