a little changes in retrieve data based on roles.

This commit is contained in:
Moradi
2025-03-05 12:28:25 +03:30
parent e5253f7eda
commit 9c9f40d06e
5 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ class ItemController extends Controller
$Items = Item::where( "status" , StatusTypeEnum::APPROVED )
->where( "package_id" , null )
->where('creator_id', $userId)
->where('user_id', $userId)
->orderByDesc( 'id' )
->isNotRepaired()
->get();