Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68930

H5P Activity: Different capability behaviour between web and WS

XMLWordPrintable

      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.

            cescobedo Carlos Escobedo
            dpalou Dani Palou
            Juan Leyva Juan Leyva
            Adrian Greeve Adrian Greeve
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 10 minutes
                3h 10m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.