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

Trigger event core\event\role_capabilities_updated inside of assign_capability()

    XMLWordPrintable

    Details

      Description

      At the moment event core\event\role_capabilities_updated is triggered after calling to assign_capability()

      First benefit will be that we will event/log particular changes instead of general "some permissions changed"

      Second benefit is that we will event/log ALL situations where capabilities are changed which are not logged atm such as:

      • adding/removing individual capabilities (non-advanced mode)
      • capabilities overrides restored from backup file
      • resetting capabilities

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marina Marina Glancy
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: