Skip to content

Commit

Permalink
feat: removing AS_CERTIFIER flag for development
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed Mar 12, 2021
1 parent 805809c commit 76f0577
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/server/postgraphile/authenticationPgSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const databaseConnectionService = require('../db/databaseConnectionService');
const AUTH_BYPASS_COOKIE = 'mocks.auth';
const NO_AUTH = process.argv.includes('NO_AUTH');
const AS_REPORTER = process.argv.includes('AS_REPORTER');
const AS_CERTIFIER = process.argv.includes('AS_CERTIFIER');
const AS_ANALYST = process.argv.includes('AS_ANALYST');
const AS_ADMIN = process.argv.includes('AS_ADMIN');
const AS_PENDING = process.argv.includes('AS_PENDING');
Expand All @@ -28,15 +27,6 @@ const authenticationPgSettings = (req) => {
};
}

if (AS_CERTIFIER || allowCypressForRole('certifier', req)) {
return {
'jwt.claims.sub': '15a21af2-ce88-42e6-ac90-0a5e24260ec6',
'jwt.claims.user_groups': 'User',
'jwt.claims.priority_group': 'User',
role: 'ciip_industry_user'
};
}

if (AS_REPORTER || allowCypressForRole('reporter', req)) {
return {
'jwt.claims.sub': '809217a1-34b8-4179-95bc-6b4410b4fe16',
Expand Down

0 comments on commit 76f0577

Please sign in to comment.