Fix attaching User/Groups headers for bypass strategy

pull/352/head
Amir Zarrinkafsh 2019-04-08 23:10:22 +10:00 committed by Clément Michaud
parent 87e06e6528
commit c074270b54
1 changed files with 2 additions and 4 deletions

View File

@ -36,8 +36,6 @@ export default async function (req: Express.Request, res: Express.Response,
const authorizationLevel = CheckAuthorizations(vars.authorizer, d.domain, d.path, username, groups, req.ip,
authSession.authentication_level);
if (authorizationLevel > AuthorizationLevel.BYPASS) {
CheckInactivity(req, authSession, vars.config, vars.logger);
setUserAndGroupsHeaders(res, username, groups);
}
}