Skip to content
Snippets Groups Projects
Commit 836c9d1f authored by Fabien Zucchet's avatar Fabien Zucchet
Browse files

debug

parent 08aebf41
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,7 @@ async function getUsersPerformance(req, res) { ...@@ -160,7 +160,7 @@ async function getUsersPerformance(req, res) {
async function isAdminMiddleware(req, res, next) { async function isAdminMiddleware(req, res, next) {
console.log(req.session.ids); console.log(req.session.ids);
const login = req.session.login || ''; const login = req.session.login || '';
const admins = getAdminsLogins(); const admins = await getAdminsLogins();
console.log(admins); console.log(admins);
if (admins.includes(login)) { if (admins.includes(login)) {
return next(); return next();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment