From a709002f7e915c27f1ba0dc06dc258c69ed997a7 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 7 Jan 2019 16:11:08 +0100 Subject: [PATCH] MOBILE-2795 lesson: Fix password protected lessons --- src/addon/mod/lesson/components/index/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/addon/mod/lesson/components/index/index.ts b/src/addon/mod/lesson/components/index/index.ts index 015434ce0..ada4eded7 100644 --- a/src/addon/mod/lesson/components/index/index.ts +++ b/src/addon/mod/lesson/components/index/index.ts @@ -535,6 +535,8 @@ export class AddonModLessonIndexComponent extends CoreCourseModuleMainActivityCo const preventReason = this.lessonProvider.getPreventAccessReason(this.accessInfo, true); if (preventReason) { this.preventMessages = [preventReason]; + } else { + this.preventMessages = []; } // Log view now that we have the password.