MOBILE-3833 h5p: Fix Cannot access user attempts error on prefetch
parent
8f0c0bcfbb
commit
1f08ceba4a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue