mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
fixed rest-api issue with token not being checked correctly
This commit is contained in:
@@ -760,7 +760,7 @@ router.route('/api/conf/:channel_name').post(function(req, res) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function checkOveruseApiToken(authorized, token_docs, res, callback) {
|
function checkOveruseApiToken(authorized, token_docs, res, callback) {
|
||||||
if(authorized || (authorized && token_docs[0].limit == 0)) {
|
if(!authorized || (authorized && token_docs[0].limit == 0)) {
|
||||||
callback();
|
callback();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user