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

debug

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