Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.9
-
Fix Version/s: 3.9
-
Component/s: H5P
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_39_STABLE
-
Fixed Branches:MOODLE_39_STABLE
-
Epic Link:
-
Pull from Repository:
-
Pull Master Branch:
MDL-68930-master -
Pull Master Diff URL:
Description
In Moodle web, when checking if tracking should be enabled for an H5P activity, it checks if the current user has the capability mod/h5pactivity:submit. For admins and teachers, this check returns false because they cannot send tracking.
However, the WebService mod_h5pactivity_get_h5pactivity_access_information returns true for admins (it works fine for teachers). The difference is the 4th parameter sent to has_capability: in web (is_tracking_enabled) it sends false, but the WebService doesn't pass this parameter.