From 396f9370ae1ff8492fcccd90e6a0f89a4b36c2db Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 3 Jan 2022 10:13:14 +0800 Subject: [PATCH] set users list allowed to see original packing measurements --- app/Http/Resources/PackingListResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Resources/PackingListResource.php b/app/Http/Resources/PackingListResource.php index e5d5ac93..53823417 100644 --- a/app/Http/Resources/PackingListResource.php +++ b/app/Http/Resources/PackingListResource.php @@ -20,7 +20,7 @@ class PackingListResource extends JsonResource $packages = $replica ? $replica->packages : $this->packages; - if(in_array(Auth()->user()->type, [RoleTypes::SHADOW_ADMIN, RoleTypes::SUPER_ADMIN]) || in_array(Auth()->user()->id, [1914, 1915])) { + if(in_array(Auth()->user()->type, [RoleTypes::SHADOW_ADMIN, RoleTypes::SUPER_ADMIN]) || in_array(Auth()->user()->id, [1914, 1919])) { $packages = $this->packages; }