We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 164930d + 2e31a05 commit bf2299dCopy full SHA for bf2299d
app/Livewire/OauthClients.php
@@ -47,7 +47,7 @@ public function deleteClient(Client $clientId): void
47
{
48
// test for safety
49
// ->delete must be of type Client - thus the model binding
50
- if ($clientId->created_by == auth()->id()) {
+ if ($clientId->user_id == auth()->id()) {
51
app(ClientRepository::class)->delete($clientId);
52
} else {
53
Log::warning('User ' . auth()->id() . ' attempted to delete client ' . $clientId->id . ' which belongs to user ' . $clientId->created_by);
0 commit comments