fix
This commit is contained in:
1 parent
cf0b1c40e6
commit
51c4a985f3
1 file changed
+1
-1
@@ -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' => 'Выбранное устройство не принадлежит текущему пользователю'];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user