This commit is contained in:
Evgenii Abramov
2021-03-30 21:43:58 +03:00
parent 2d56aa7eed
commit 147af06b56

View File

@@ -36,6 +36,7 @@ module.exports.devices = [
for (const d of global.devices) {
const {allowedUsers} = d.meta;
console.log(allowedUsers);
if (Array.isArray(allowedUsers) && allowedUsers.indexOf(userId) > -1) {
console.log(d.getInfo());
r.payload.devices.push(d.getInfo());