Skip to content

Commit

Permalink
Merge pull request #65 from khalidmaquilang/hotfix/si-68-kick-missing
Browse files Browse the repository at this point in the history
Hotfix | kick function missing
  • Loading branch information
khalidmaquilang authored Jun 10, 2024
2 parents 49c4af3 + fcde3b7 commit c167df8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Filament/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function table(Table $table): Table
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\Action::make('Kick User')
->authorize('kick')
->authorize('kick_user')
->color('danger')
->icon('heroicon-m-user-minus')
->requiresConfirmation()
Expand All @@ -110,7 +110,8 @@ public static function table(Table $table): Table
->success()
->title('The user has been removed from the company.')
->send();
}),
})
->hidden(fn ($record) => $record->id === auth()->id()),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Expand Down

0 comments on commit c167df8

Please sign in to comment.