Skip to content

Commit

Permalink
Add new test user
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensearle committed Dec 14, 2021
1 parent 1cc461a commit 4dee54e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/helpers/authUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const authorisedUsers = [
'liam.price.testing@judicialappointments.digital',
'trefor.walters.testing@judicialappointments.digital',
'tom.russelltesting.testing@judicialappointments.digital',
'stefan.thomas.testing@judicialappointments.digital',
];

const authorisedToPerformAction = async (email) => {
Expand Down
2 changes: 2 additions & 0 deletions src/store/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const module = {
'liam.price.testing@judicialappointments.digital',
'trefor.walters.testing@judicialappointments.digital',
'tom.russelltesting.testing@judicialappointments.digital',
'stefan.thomas.testing@judicialappointments.digital',
].indexOf((user.email).toLowerCase()) >= 0) {
allOk = true;
}
Expand All @@ -54,6 +55,7 @@ const module = {
'liam.price.testing@judicialappointments.digital',
'trefor.walters.testing@judicialappointments.digital',
'tom.russelltesting.testing@judicialappointments.digital',
'stefan.thomas.testing@judicialappointments.digital',
].indexOf((user.email).toLowerCase() >= 0)
) {
role = 'superadmin';
Expand Down

0 comments on commit 4dee54e

Please sign in to comment.