mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-21 13:34:08 +00:00
set users list allowed to see original packing measurements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user