From 4dee54e0081e38f2462bbe84d60fda54ab5dd265 Mon Sep 17 00:00:00 2001 From: Warren Searle Date: Tue, 14 Dec 2021 09:31:46 +0000 Subject: [PATCH] Add new test user --- src/helpers/authUsers.js | 1 + src/store/auth.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/helpers/authUsers.js b/src/helpers/authUsers.js index 8e1be2fd8..4f0b0f4e6 100644 --- a/src/helpers/authUsers.js +++ b/src/helpers/authUsers.js @@ -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) => { diff --git a/src/store/auth.js b/src/store/auth.js index ccbd19ea2..a26060af3 100644 --- a/src/store/auth.js +++ b/src/store/auth.js @@ -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; } @@ -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';