From b7bfd5549aec393ef15c43d373bb0d77fff0b809 Mon Sep 17 00:00:00 2001 From: mohammad-alavi Date: Tue, 28 Sep 2021 17:07:26 +0330 Subject: [PATCH] remove useless validaitons --- .../Authorization/UI/API/Requests/AssignRolesToUserRequest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Containers/AppSection/Authorization/UI/API/Requests/AssignRolesToUserRequest.php b/app/Containers/AppSection/Authorization/UI/API/Requests/AssignRolesToUserRequest.php index 50c9be861..45294bf21 100644 --- a/app/Containers/AppSection/Authorization/UI/API/Requests/AssignRolesToUserRequest.php +++ b/app/Containers/AppSection/Authorization/UI/API/Requests/AssignRolesToUserRequest.php @@ -34,8 +34,7 @@ public function rules(): array { return [ 'roles_ids' => 'array|required', - 'roles_ids.*' => 'exists:' . config('permission.table_names.roles') . ',id', - 'user_id' => 'required|exists:users,id', + 'user_id' => 'required', ]; }