From 8807c0b5e7b8aa6601bd616bc65cc4c1faf5855c Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Fri, 15 Apr 2022 12:08:36 +0430 Subject: [PATCH] refactor --- .../AppSection/User/UI/API/Requests/UpdateUserRequest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Containers/AppSection/User/UI/API/Requests/UpdateUserRequest.php b/app/Containers/AppSection/User/UI/API/Requests/UpdateUserRequest.php index 2bd67f17e..1f1d42ea3 100644 --- a/app/Containers/AppSection/User/UI/API/Requests/UpdateUserRequest.php +++ b/app/Containers/AppSection/User/UI/API/Requests/UpdateUserRequest.php @@ -44,9 +44,6 @@ public function rules(): array public function authorize(): bool { - // is this an admin who has access to permission `update-users` - // or the user is updating his own object (is the owner). - return $this->check([ 'hasAccess|isResourceOwner', ]);