Merge pull request #3734 from crazyserver/MOBILE-4009

MOBILE-4009 course: Check guest access ignoring cache
main
Noel De Martin 2023-07-12 08:51:25 +02:00 committed by GitHub
commit 7e2f70ef6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ export class CoreCourseSummaryPage implements OnInit, OnDestroy {
if (this.useGuestAccess && this.guestAccessPasswordRequired && guestInstanceId) {
// Check if the user has access to the course as guest with a previous sent password.
let validated = await CoreUtils.promiseWorks(
CoreCourse.getSections(this.courseId, true, true, undefined, undefined, false),
CoreCourse.getSections(this.courseId, true, true, { getFromCache: false, emergencyCache: false }, undefined, false),
);
if (!validated) {