From 49c5bd8276f7298978ea9f0f6f18eb0d79bdee9d Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Thu, 13 Jan 2022 12:34:41 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/lib/CAPI.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/lib/CAPI.class.php b/inc/lib/CAPI.class.php index c3cce82..37def3b 100644 --- a/inc/lib/CAPI.class.php +++ b/inc/lib/CAPI.class.php @@ -25,7 +25,7 @@ class CAPI { $sensor = $_REQUEST['sensor']; $deviceId = $_REQUEST['deviceId']; - $arUserDevices = CIoT::getUserDevices($USER['id']); + $arUserDevices = getUserDevices($USER['id']); if (!in_array($deviceId, $arUserDevices)) { return ['status' => 'fail', 'message' => 'Выбранное устройство не принадлежит текущему пользователю']; }