MOBILE-2795 lesson: Fix password protected lessons

main
Dani Palou 2019-01-07 16:11:08 +01:00
parent eed3e95a9a
commit a709002f7e
1 changed files with 2 additions and 0 deletions

View File

@ -535,6 +535,8 @@ export class AddonModLessonIndexComponent extends CoreCourseModuleMainActivityCo
const preventReason = this.lessonProvider.getPreventAccessReason(this.accessInfo, true); const preventReason = this.lessonProvider.getPreventAccessReason(this.accessInfo, true);
if (preventReason) { if (preventReason) {
this.preventMessages = [preventReason]; this.preventMessages = [preventReason];
} else {
this.preventMessages = [];
} }
// Log view now that we have the password. // Log view now that we have the password.