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; }