- {#if isLiveSessionLesson && mode === MODES.view && !isLessonLockedForStudent}
+ {#if isLiveSessionLesson && mode === MODES.view && !($isCourseLearnerView && contentLockReason)}
{/if}
- {#if $isOrgStudent === true && !isStudentLessonStateReady}
-
-
-
- {:else if isLessonLockedForStudent && contentLockReason}
-
+ {#if $isCourseLearnerView}
+ {#if !isStudentLessonStateReady}
+
+
+
+ {:else if contentLockReason}
+
+ {:else if lessonApi.lesson && !isMaterialsEmpty}
+ {#key lessonId}
+
+ {#if !hasLessonVideos}
+
+ {/if}
+
+ {#each viewModeComponents as Component, index (index)}
+
+ {/each}
+
+ {#if $currentOrg.customization?.apps?.comments}
+
+
+
+ {/if}
+
+ {/key}
+ {:else}
+
+ {/if}
{:else if mode === MODES.edit}
{/key}
- {:else if $isOrgStudent === true}
-
{:else}
{
+ return $isStudentExperience || $isOrgStudent === true;
+ }
+);
+
/**
* The root path for navigation: '/lms' for students, '/org/{siteName}' for admin/teacher
*/
diff --git a/apps/dashboard/src/routes/(app)/courses/[id]/+layout.svelte b/apps/dashboard/src/routes/(app)/courses/[id]/+layout.svelte
index bf5b4bfd..189e4487 100644
--- a/apps/dashboard/src/routes/(app)/courses/[id]/+layout.svelte
+++ b/apps/dashboard/src/routes/(app)/courses/[id]/+layout.svelte
@@ -25,7 +25,7 @@
import { page } from '$app/state';
import { profile } from '$lib/utils/store/user';
import { isOrgAdmin } from '$lib/utils/store/org';
- import { isOrgStudent } from '$lib/utils/store/app';
+ import { isCourseLearnerView } from '$lib/utils/store/app';
import { t } from '$lib/utils/functions/translations';
import { ContentType } from '@cio/utils/constants/content';
import type { CourseMember } from '$features/course/utils/types';
@@ -104,7 +104,7 @@
const showContentAskAiBar = $derived(
isCourseReady &&
isLessonOrExercisePage &&
- !($isOrgStudent && isContentLockedForStudent) &&
+ !($isCourseLearnerView && isContentLockedForStudent) &&
sidePanel.activePanelId !== AI_ASSISTANT_PANEL_ID
);