From 51c4a985f360895d72ce5874e68ef6f7288a7284 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Thu, 13 Jan 2022 12:22:30 +0300 Subject: [PATCH] fix --- 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 37def3b..c3cce82 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 = getUserDevices($USER['id']); + $arUserDevices = CIoT::getUserDevices($USER['id']); if (!in_array($deviceId, $arUserDevices)) { return ['status' => 'fail', 'message' => 'Выбранное устройство не принадлежит текущему пользователю']; }