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

H5P `mod/h5pactivity:submit` capability incorrectly used

    XMLWordPrintable

    Details

    • Sprint:
      Moppies Kanban

      Description

      The mod/h5pactivity:submit capability is being used to determine which users have submitted something, rather than which users can submit something.

      This affects cases like:

      1. mod_h5pactivity\local\grader::get_user_grades_for_deletion()
      2. Possibly is_tracking_enabled()
      3. mod/h5pactivity/classes/local/report/participants.php

      The above use the capability to determine which users may have submitted content, rather than looking at which users actually have.

      Why is this a problem: Because context freezing removes all write capabilities, and mod/h5pactivity:submit is a write capabilit. When freezing is enabled, all reports will show that no user has submitted any content, and various data may appear missing.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tusefomal Ferran Recio
              Reporter:
              dobedobedoh Andrew Lyons
              Peer reviewer:
              Amaia Anabitarte Amaia Anabitarte
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              CiBoT CiBoT
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 1 day, 2 hours, 25 minutes
                  1w 1d 2h 25m