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

Create badges_can_manage method in the API

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.7
    • Badges
    • MOODLE_37_STABLE

      Eloy has raised in MDL-62631 that there are several places in the API where the needed capabilities to manage badges are checked.

      It will be good to create a badges_can_manage method to unify it. The content of the new method should contain the capabilities in lib/badgeslib.php. It should be called from, at least:

      • badges/index.php (~ line 95)
      • badges/view.php (~line 117 when MDL-62631 gets integrated)
      • lib/badgeslib.php, in the badges_add_course_navigation method.

            Unassigned Unassigned
            sarjona Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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