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

debug

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