feat: restrict certain UI elements for students in course sidebar and lesson pages

This commit is contained in:
Rotimi Best
2026-03-12 06:15:39 +01:00
parent 51db162829
commit c87cc4b868
5 changed files with 37 additions and 26 deletions
@@ -84,7 +84,8 @@
already_joined: result.data.alreadyJoined
});
goto(result.data.redirectTo || '/lms');
// need to force page reload to avoid cache issues
window.location.href = result.data.redirectTo || '/lms';
} finally {
loading = false;
}
@@ -4,7 +4,7 @@
import { t } from '$lib/utils/functions/translations';
</script>
<Page.Root class="mx-auto flex w-[calc(100vw-var(--sidebar-width))]!">
<Page.Root class="mx-auto flex w-[calc(95vw-var(--sidebar-width))]!">
<Page.Header>
<Page.HeaderContent>
<Page.Title>