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

Create badges_can_manage method in the API

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: Badges
    • Labels:
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              sarjona Sara Arjona (@sarjona)
              Participants:
              Component watchers:
              Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: