Skip to content

Commit c167df8

Browse files
Merge pull request #65 from khalidmaquilang/hotfix/si-68-kick-missing
Hotfix | kick function missing
2 parents 49c4af3 + fcde3b7 commit c167df8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/Filament/Resources/UserResource.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static function table(Table $table): Table
9898
->actions([
9999
Tables\Actions\EditAction::make(),
100100
Tables\Actions\Action::make('Kick User')
101-
->authorize('kick')
101+
->authorize('kick_user')
102102
->color('danger')
103103
->icon('heroicon-m-user-minus')
104104
->requiresConfirmation()
@@ -110,7 +110,8 @@ public static function table(Table $table): Table
110110
->success()
111111
->title('The user has been removed from the company.')
112112
->send();
113-
}),
113+
})
114+
->hidden(fn ($record) => $record->id === auth()->id()),
114115
])
115116
->bulkActions([
116117
Tables\Actions\BulkActionGroup::make([

0 commit comments

Comments
 (0)