mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 20:31:05 +03:30
there was a misunderstanding for this part I fix it. and the issue is not from the backend I just add some validation to make doubly sure.
This commit is contained in:
@@ -111,7 +111,7 @@ class ItemController extends Controller
|
||||
|
||||
public function getItems()
|
||||
{
|
||||
$userId = auth('api')->user()->id;
|
||||
$userId = auth('api')->id();
|
||||
// $medicalCenterId = optional(optional($user)->medical_center)->id;
|
||||
// $userIds = User::where('medical_center_id', $medicalCenterId)->pluck('id')->toArray();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user