MOBILE-3814 course: Do not navigate across stealth modules
parent
8a5310ef1e
commit
b3ccad2b92
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue