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

Teachers are able to create user accounts during restore even they don't have "moodle/user:create"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.9.8
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Please read http://moodle.org/mod/forum/discuss.php?d=106252 and http://moodle.org/mod/forum/discuss.php?d=104358

      FULL STEPS TO REPRODUCE
      =========================
      1. go to server A
      2. backup a course together with user accounts
      3. go to server B and log in as a Teacher or Course creator
      4. restore the backup

      WHAT WAS EXPECTED
      ===================
      As neither Teacher nor Course creator have granted capability "moodle/user:create", no users are restored

      WHAT ACTUALLY HAPPENS
      =======================
      New users are registered. The Admin does not know anything.

        Attachments

        1. MDL-16658.diff
          1 kB
          Anthony Borrow
        2. MDL-16658-full.patch.txt
          19 kB
          Eloy Lafuente (stronk7)
        3. pre_check_users.patch.txt
          13 kB
          Eloy Lafuente (stronk7)

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              20 Vote for this issue
              Watchers:
              19 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Mar/10