mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 22:01:05 +03:30
remove status approved condition from index items for users and fix the issue with validating store package request.
This commit is contained in:
@@ -25,7 +25,7 @@ class StorePackageRequest extends FormRequest
|
||||
'name' => 'required|max:250',
|
||||
'note' => 'nullable',
|
||||
'items' => 'required|array|min:1',
|
||||
'items.*' => ['exists:items,id','integer',new ValidateItemOwnership()],
|
||||
'items.*.id' => ['exists:items,id','integer',new ValidateItemOwnership()],
|
||||
];
|
||||
break;
|
||||
}
|
||||
@@ -36,7 +36,7 @@ class StorePackageRequest extends FormRequest
|
||||
'name' => 'required|max:250',
|
||||
'note' => 'nullable',
|
||||
'items' => 'required|array|min:1',
|
||||
'items.*' => ['exists:items,id','integer',new ValidateItemOwnership()],
|
||||
'items.*.id' => ['exists:items,id','integer',new ValidateItemOwnership()],
|
||||
];
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user