From b3ccad2b92f820e7a8bc3c55acee2da74d7248b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 18 Mar 2022 15:00:42 +0100 Subject: [PATCH] MOBILE-3814 course: Do not navigate across stealth modules --- .../course/components/module-navigation/module-navigation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/features/course/components/module-navigation/module-navigation.ts b/src/core/features/course/components/module-navigation/module-navigation.ts index 40a36ad23..4e436af4b 100644 --- a/src/core/features/course/components/module-navigation/module-navigation.ts +++ b/src/core/features/course/components/module-navigation/module-navigation.ts @@ -177,7 +177,7 @@ export class CoreCourseModuleNavigationComponent implements OnInit, OnDestroy { * @return Wether the module is available to the user or not. */ protected async isModuleAvailable(module: CoreCourseModuleData): Promise { - return CoreCourse.instance.moduleHasView(module); + return !CoreCourseHelper.isModuleStealth(module) && CoreCourse.instance.moduleHasView(module); } /**