diff --git a/src/addons/mod/h5pactivity/services/handlers/prefetch.ts b/src/addons/mod/h5pactivity/services/handlers/prefetch.ts index 14ecc15cb..98309cf0a 100644 --- a/src/addons/mod/h5pactivity/services/handlers/prefetch.ts +++ b/src/addons/mod/h5pactivity/services/handlers/prefetch.ts @@ -154,6 +154,10 @@ export class AddonModH5PActivityPrefetchHandlerService extends CoreCourseActivit }; if (!accessInfo.canreviewattempts) { + if (!h5pActivity.enabletracking) { + return; + } + // Not a teacher, prefetch user attempts and the current user profile. const site = await CoreSites.getSite(siteId);