fix
This commit is contained in:
1 parent
fe3bd6ff4e
commit
97c65ffa7f
1 file changed
+1
-1
@@ -34,7 +34,7 @@ class CAPI {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!in_array($deviceId, $arUserDevices)) {
|
||||
if (!$canAccessToDevice) {
|
||||
return ['status' => 'fail', 'message' => 'Выбранное устройство не принадлежит текущему пользователю'];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user