From b780a31a00012a0d09021562a62e525e3010f46e Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Sat, 2 Dec 2023 14:56:50 +0500 Subject: [PATCH] wip --- app/Policies/UserPolicy.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Policies/UserPolicy.php b/app/Policies/UserPolicy.php index 0af3de0..51e5855 100644 --- a/app/Policies/UserPolicy.php +++ b/app/Policies/UserPolicy.php @@ -31,6 +31,10 @@ class UserPolicy return true; } + if ($user->id === $model->id) { + return true; + } + return false; } @@ -59,6 +63,10 @@ class UserPolicy return true; } + if ($user->id === $model->id) { + return true; + } + return false; }