Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 0aa2742

Browse files
authored
Merge pull request #283 from CoderDojo/bugfix/temp-remove-tc-redirect
Disable the t&cs incomplete redirect
2 parents 9763c61 + d432592 commit 0aa2742

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/router/loggedInNavGuard.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ export default async function (to, from, next) {
77
return null;
88
}
99

10-
if (
11-
loggedInUser.user &&
12-
loggedInUser.user.termsConditionsAccepted === false
13-
) {
14-
next({ path: `/dashboard/profile/${loggedInUser.user.id}/edit` });
15-
return null;
16-
}
10+
// Temporarily disabled - 2/3/2020
11+
// if (
12+
// loggedInUser.user &&
13+
// loggedInUser.user.termsConditionsAccepted === false
14+
// ) {
15+
// next({ path: `/dashboard/profile/${loggedInUser.user.id}/edit` });
16+
// return null;
17+
// }
1718

1819
next(undefined);
1920
return null;

test/unit/specs/router/loggedInNavGuard.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('loggedInNavGuard', () => {
5050
});
5151
});
5252

53-
it('should redirect to profile page if user has not accepted terms and conditions', async () => {
53+
it.skip('should redirect to profile page if user has not accepted terms and conditions', async () => {
5454
// ARRANGE
5555
MockUserService.getCurrentUser.resolves({
5656
body: {

0 commit comments

Comments
 (0)