mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-04-14 04:55:58 -05:00
11 lines
248 B
JavaScript
11 lines
248 B
JavaScript
const common = require('../helpers/common');
|
|
|
|
function adminUserAuthenticationMiddleware(req, res, next) {
|
|
if (req.isAuthenticated()) {
|
|
return next();
|
|
}
|
|
|
|
common.sendApiAuthError(req, res);
|
|
}
|
|
|
|
module.exports = adminUserAuthenticationMiddleware; |