fix : 일반회원 가입후 테넌트에 가입하기 전에 테넌트가 필요한 API호출 됨
issue : https://www.notion.so/hamss/API-Product-2559c8d34ba08008b8bcf45cd11b2f4b?source=copy_link
This commit is contained in:
@@ -25,7 +25,7 @@ public function apply(Builder $builder, Model $model)
|
|||||||
?? $request->header('X-TENANT-ID')
|
?? $request->header('X-TENANT-ID')
|
||||||
?? auth()->user()?->tenant_id;
|
?? auth()->user()?->tenant_id;
|
||||||
|
|
||||||
if ($tenantId) {
|
if ($tenantId !== null) {
|
||||||
$builder->where($model->getTable().'.tenant_id', $tenantId);
|
$builder->where($model->getTable().'.tenant_id', $tenantId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user