From 12c75357b5b10040124266ed41dc5b8c9ff8f2ee Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 5 Sep 2024 11:53:48 -0700 Subject: [PATCH] Revert IP tracking to only single device users. --- client/src/redux/user/user.sagas.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/client/src/redux/user/user.sagas.js b/client/src/redux/user/user.sagas.js index 52aaff580..da6b93d65 100644 --- a/client/src/redux/user/user.sagas.js +++ b/client/src/redux/user/user.sagas.js @@ -326,17 +326,17 @@ export function* SetAuthLevelFromShopDetails({ payload }) { ); const user = yield select((state) => state.user.currentUser); - // if (payload.features.singleDeviceOnly) { - // if ( - // !( - // user.email.includes("@imex.") || - // user.email.includes("@rome.") || - // user.email.includes("@rometech.") || - // user.email.includes("@promanager.") - // ) - // ) - yield put(setInstanceId(user.uid)); - //} + if (payload.features.singleDeviceOnly) { + if ( + !( + user.email.includes("@imex.") || + user.email.includes("@rome.") || + user.email.includes("@rometech.") || + user.email.includes("@promanager.") + ) + ) + yield put(setInstanceId(user.uid)); + } //For Rome, check to make sure it's not a PM shop. try {