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

H5P Activity: Different capability behaviour between web and WS

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.9
    • 3.9
    • H5P

    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.

      Attachments

        Activity

          People

            cescobedo Carlos Escobedo
            dpalou Dani Palou
            Juan Leyva Juan Leyva
            Adrian Greeve Adrian Greeve
            CiBoT CiBoT
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/Jun/20

              Time Tracking

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