Allow deleting oauth user
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
143e9cdd61
commit
5f66fb0bba
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class OauthClients extends Component
|
||||||
{
|
{
|
||||||
// test for safety
|
// test for safety
|
||||||
// ->delete must be of type Client - thus the model binding
|
// ->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);
|
app(ClientRepository::class)->delete($clientId);
|
||||||
} else {
|
} else {
|
||||||
Log::warning('User ' . auth()->id() . ' attempted to delete client ' . $clientId->id . ' which belongs to user ' . $clientId->created_by);
|
Log::warning('User ' . auth()->id() . ' attempted to delete client ' . $clientId->id . ' which belongs to user ' . $clientId->created_by);
|
||||||
|
|
Loading…
Add table
Reference in a new issue