diff --git a/mobileapi/manager/ApiManager.php b/mobileapi/manager/ApiManager.php index 05f5de3..685ac1f 100644 --- a/mobileapi/manager/ApiManager.php +++ b/mobileapi/manager/ApiManager.php @@ -104,6 +104,10 @@ class ApiManager throw new NotFoundHttpException(); } + if (isset($virtualKey->direction_out_at )){ + throw new NotFoundHttpException("Already out"); + } + $key = Key::findOne(['id_key' => $virtualKey->id_key]); if (!isset($key)) { throw new NotFoundHttpException();