mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 11:43:38 +00:00
Created new function isAuthorDev
This commit is contained in:
10
client/funcs/isAuthorDev.js
Normal file
10
client/funcs/isAuthorDev.js
Normal file
@ -0,0 +1,10 @@
|
||||
module.exports = function (devList, authorID){
|
||||
let response = false;
|
||||
Object.keys(devList).forEach(function(oneDev) {
|
||||
devID = devList[oneDev];
|
||||
if(authorID == devID){
|
||||
response = true;
|
||||
}
|
||||
});
|
||||
return response;
|
||||
}
|
Reference in New Issue
Block a user