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

H5P Activity: Different capability behaviour between web and WS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.9
    • Fix Version/s: 3.9
    • Component/s: 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

            Assignee:
            cescobedo Carlos Escobedo
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Juan Leyva
            Integrator:
            Adrian Greeve
            Tester:
            CiBoT
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              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