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

Inconsistent capability checks for enabling badges causes error

XMLWordPrintable

      Regression from MDL-82168, the two new external methods for enabling/disabling badges check the 'moodle/badges:configurecriteria' capability here and here

      However the relevant calling code in the interface wasn't updated, and still checks 'moodle/badges:configuredetails' when rendering report actions

      This misalignment of capability checks subsequently creates the following error when a user without the former capability tries to interact with the report actions:

            pholden Paul Holden
            pholden Paul Holden
            Laurent David Laurent David
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 19 minutes
                19m

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