MOBILE-4009 course: Check guest access ignoring cache
This commit is contained in:
parent
2c881793e9
commit
377259866c
@ -298,7 +298,7 @@ export class CoreCourseSummaryPage implements OnInit, OnDestroy {
|
|||||||
if (this.useGuestAccess && this.guestAccessPasswordRequired && guestInstanceId) {
|
if (this.useGuestAccess && this.guestAccessPasswordRequired && guestInstanceId) {
|
||||||
// Check if the user has access to the course as guest with a previous sent password.
|
// Check if the user has access to the course as guest with a previous sent password.
|
||||||
let validated = await CoreUtils.promiseWorks(
|
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) {
|
if (!validated) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user