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

tool_dataprivacy exports as wrong user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 3.3.6, 3.4
    • Component/s: Privacy
    • Labels:
      None

      Description

      The user preferences data in a data request export is not necessarily for the correct user, as the export_user_preferences() method makes no use of the passed userid.

      To reproduce, on a server with the boost theme, where the administrator has marked at least one user tour as completed:

      1. Create a new user
      2. As admin, in tool_dataprivacy, create a data request for that user and follow the steps required to get the zip download
      3. Open the zip file and go to System\User preferences\tool_usertours.json
      4. You see data, which you shouldn't, and this is for the admin user

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              maherne Michael Aherne
              Peer reviewer:
              Jun Pataleta
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17