Skip to content

Commit bf2299d

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 164930d + 2e31a05 commit bf2299d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Livewire/OauthClients.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function deleteClient(Client $clientId): void
4747
{
4848
// test for safety
4949
// ->delete must be of type Client - thus the model binding
50-
if ($clientId->created_by == auth()->id()) {
50+
if ($clientId->user_id == auth()->id()) {
5151
app(ClientRepository::class)->delete($clientId);
5252
} else {
5353
Log::warning('User ' . auth()->id() . ' attempted to delete client ' . $clientId->id . ' which belongs to user ' . $clientId->created_by);

0 commit comments

Comments
 (0)