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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user