File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed
mfes/content/src/components/Content Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments