MOBILE-3814 course: Do not navigate across stealth modules

main
Pau Ferrer Ocaña 2022-03-18 15:00:42 +01:00
parent 8a5310ef1e
commit b3ccad2b92
1 changed files with 1 additions and 1 deletions

View File

@ -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<boolean> {
return CoreCourse.instance.moduleHasView(module);
return !CoreCourseHelper.isModuleStealth(module) && CoreCourse.instance.moduleHasView(module);
}
/**