This commit is contained in:
Evgenii Abramov
2021-03-30 21:30:28 +03:00
parent be9acc37e4
commit cc3b0779a0

View File

@@ -35,6 +35,7 @@ module.exports.devices = [
}; };
for (const d of global.devices) { for (const d of global.devices) {
console.log(d);
const {allowedUsers} = d.custom_data; const {allowedUsers} = d.custom_data;
if (Array.isArray(allowedUsers) && allowedUsers.indexOf(userId)) { if (Array.isArray(allowedUsers) && allowedUsers.indexOf(userId)) {
console.log(d.getInfo()); console.log(d.getInfo());