1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-19 22:11:29 +00:00

Fixing edge cases in the search tests

This commit is contained in:
Scott Tolksdorf
2017-01-27 19:47:45 -05:00
parent a826aaffd9
commit 26bcb3395a
8 changed files with 80 additions and 43 deletions

View File

@@ -16,7 +16,7 @@ const Middleware = {
return next();
},
admin : (req, res, next) => {
if(req.query.admin_key === config.get('admin:key')){
if(req.headers['x-homebrew-admin'] === config.get('admin:key')){
req.admin = true;
}
return next();