From 5f66fb0bba8dc185d4b2cb09e70eff55096a7801 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 22 Apr 2025 17:42:07 +0100 Subject: [PATCH] Allow deleting oauth user Signed-off-by: snipe --- app/Livewire/OauthClients.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/OauthClients.php b/app/Livewire/OauthClients.php index 017e78906..e114c2278 100644 --- a/app/Livewire/OauthClients.php +++ b/app/Livewire/OauthClients.php @@ -47,7 +47,7 @@ class OauthClients extends Component { // test for safety // ->delete must be of type Client - thus the model binding - if ($clientId->created_by == auth()->id()) { + if ($clientId->user_id == auth()->id()) { app(ClientRepository::class)->delete($clientId); } else { Log::warning('User ' . auth()->id() . ' attempted to delete client ' . $clientId->id . ' which belongs to user ' . $clientId->created_by);