Skip to content

Commit 4d4948c

Browse files
authored
Merge pull request #2446 from tekdi/release-1.13.0-prod-register
Release 1.13.0 prod register
2 parents f88e0af + 4a2a928 commit 4d4948c

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

apps/learner-web-app/src/app/programs/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ function ProgramsContent() {
3939
const enrolledTenantIds = tenantData
4040
.filter(
4141
(item: any) =>
42-
item.tenantStatus === 'active' && item.tenantName !== 'Pratham'
42+
(item.tenantStatus === 'active' ||
43+
item.tenantStatus === 'pending') &&
44+
item.tenantName !== 'Pratham'
4345
)
4446
.map((item: any) => item.tenantId);
4547
if (enrolledTenantIds.length > 0) {

apps/learner-web-app/src/components/Content/Player.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,13 @@ const App = ({
9292
return;
9393
}
9494
}
95-
}
9695
if(localStorage.getItem('channelId')!==rt.channel)
97-
{
98-
router.push('/unauthorized');
99-
return;
96+
{
97+
router.push('/unauthorized');
98+
return;
99+
}
100100
}
101+
101102

102103
const response2 = await ContentSearch({
103104
filters: {

mfes/content/src/components/Content/ContentEnroll.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,14 @@ if(!isThematicPath && !isPosPath && result?.program) {
7171
router.push('/unauthorized');
7272
return;
7373
}
74-
}}
75-
if(localStorage.getItem('channelId')!==result.channel)
76-
{
77-
router.push('/unauthorized');
78-
return;
79-
}
74+
} if(localStorage.getItem('channelId')!==result.channel)
75+
{
76+
router.push('/unauthorized');
77+
return;
78+
}
79+
80+
}
81+
8082
const userId = getUserId(props?._config?.userIdLocalstorageName);
8183
setCheckLocalAuth(checkAuth(Boolean(userId)));
8284
if (props?._config?.isEnrollmentRequired !== false) {

0 commit comments

Comments
 (0)