-
Bug
-
Resolution: Fixed
-
Minor
-
3.9
-
MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
MDL-68930-master -
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.