Fix bug in NavigationGuard
This commit is contained in:
parent
ef6774f260
commit
7c90e27ff7
|
|
@ -37,7 +37,7 @@ const loginRequired = (to: RouteLocationNormalized) => {
|
|||
export const expertRequired: NavigationGuard = (to: RouteLocationNormalized) => {
|
||||
const courseSessionsStore = useCourseSessionsStore();
|
||||
if (courseSessionsStore.hasCockpit) {
|
||||
return to;
|
||||
return true;
|
||||
} else {
|
||||
const courseSlug = to.params.courseSlug as string;
|
||||
return `/course/${courseSlug}/learn`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue