Add files via upload
This commit is contained in:
5
util/auth.js
Normal file
5
util/auth.js
Normal file
@ -0,0 +1,5 @@
|
||||
function auth(myKey, givenKey, c) {
|
||||
if (c.key.includes(givenKey) || c.admin.key.includes(givenKey) || c.public === true || myKey === null) return true;
|
||||
return false;
|
||||
}
|
||||
module.exports = auth;
|
Reference in New Issue
Block a user