add cors filter for mobileapi

This commit is contained in:
2022-02-25 22:59:01 +01:00
parent 530accd8bf
commit 24d67f56d8
5 changed files with 109 additions and 15 deletions

View File

@@ -53,10 +53,10 @@ class MobileDeviceManager extends BaseObject
throw new NotFoundHttpException();
}
if (
in_array($device->status, [MobileDevice::STATUS_ACTIVE, MobileDevice::STATUS_INACTIVE], true) === false ){
throw new NotFoundHttpException();
}
// if (
// in_array($device->status, [MobileDevice::STATUS_ACTIVE, MobileDevice::STATUS_INACTIVE], true) === false ){
// throw new NotFoundHttpException();
// }
return $device;