forgot sth "user can create a package only from his items"

This commit is contained in:
Moradi
2025-02-27 14:51:17 +03:30
parent 9bf95438b7
commit 117a1cb160
+1 -1
View File
@@ -117,7 +117,7 @@ class ItemController extends Controller
$Items = Item::where( "status" , StatusTypeEnum::APPROVED )
->where( "package_id" , null )
->whereIn('creator_id', $userId)
->where('creator_id', $userId)
->orderByDesc( 'id' )
->isNotRepaired()
->get();