mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 15:21:06 +03:30
forgot sth "user can create a package only from his items"
This commit is contained in:
@@ -117,7 +117,7 @@ class ItemController extends Controller
|
|||||||
|
|
||||||
$Items = Item::where( "status" , StatusTypeEnum::APPROVED )
|
$Items = Item::where( "status" , StatusTypeEnum::APPROVED )
|
||||||
->where( "package_id" , null )
|
->where( "package_id" , null )
|
||||||
->whereIn('creator_id', $userId)
|
->where('creator_id', $userId)
|
||||||
->orderByDesc( 'id' )
|
->orderByDesc( 'id' )
|
||||||
->isNotRepaired()
|
->isNotRepaired()
|
||||||
->get();
|
->get();
|
||||||
|
|||||||
Reference in New Issue
Block a user