2020-05-12 23:40:49 +02:00
|
|
|
const config = require('../config.json');
|
2019-02-20 14:31:23 +01:00
|
|
|
|
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;
|