trackmyd-bot/auth.js

8 lines
141 B
JavaScript
Raw Normal View History

2019-02-20 14:31:23 +01:00
const config = require('./config');
2019-02-20 17:49:12 +01:00
function auth(userId) {
2019-02-20 14:31:23 +01:00
return config.app.authorizedUsers.includes(userId);
}
module.exports = auth;