Skip to content

Commit

Permalink
Revert "N21-2136 debugging"
Browse files Browse the repository at this point in the history
This reverts commit c88fcf9.
  • Loading branch information
GordonNicholasCap committed Nov 8, 2024
1 parent c88fcf9 commit cb282a2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions helpers/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,9 @@ const populateCurrentUser = async (req, res) => {

try {
const response = await api(req, { version: 'v3' }).get(`/systems/public/${decodedJwt.systemId}`);
const featureFlag = Configuration.get('FEATURE_EXTERNAL_SYSTEM_LOGOUT_ENABLED');
res.locals.isExternalLogoutAllowed = Configuration.get('FEATURE_EXTERNAL_SYSTEM_LOGOUT_ENABLED')
&& response.alias === 'SANIS';
res.locals.systemName = response.displayName;
logger.info('response: ', response.alias, response.displayName);
logger.info('feature: ', featureFlag);
} catch (err) {
const metadata = { error: err.toString() };
logger.error('Unable to find out the external login system used by user', metadata);
Expand Down

0 comments on commit cb282a2

Please sign in to comment.