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

Assigning sys admin leaves no log tracks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.5.7, 3.6.5, 3.7.1
    • Fix Version/s: None
    • Component/s: Administration, Logging
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE

      Description

      When assigning a System Administrator, audit log tracks are not created. Compare that to when normal defined roles are assigned, in which case audit log tracks are created. 

      Testing method:

      1. Log in as admin user
      2. Go to Site Administration > Users > Site administrators
      3. Assign a user as a system administrator
      4. Go to Site Administration > Reports > Logs
      5. Get all logs

       

      Expected behavior:

      Log track exists similar to: 

      The user with id '2' assigned the role 'system administrator' to the user with id '9'.

       

      Actual behavior:

      No audit tracks exist. I could add a million sys admins and nobody would ever know who did it.

       

      Similar behavior:

      If I assign a user as a Manager (admin definable role) for example, an audit log track is created that looks like this

      The user with id '2' assigned the role with id '1' to the user with id '9'.

        Attachments

          Activity

            People

            • Assignee:
              michaelh Michael Hawkins
              Reporter:
              stormthegates Wolf Ventir
              Participants:
              Component watchers:
              Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: