Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9064 restore cleanup - META
  3. MDL-9066

No role assigned after restoring into existing course when erasing old data

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.8
    • Fix Version/s: 1.7.2, 1.8, 1.9
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      I am not sure about this one, it might be a problem with capability reloading after deleting of old role assignments.

      To replicate (did not test it now, just what I remember from testing creator role):
      1/ backup course
      2/ restore into existing course - overriding data
      3/ no roles assigned at all - though there is a test that should assign legacy editing teacher

      My +1 to remember the old role of the user that is restoring the course and reassign it if he/she does not have role assign capability in restored course. I would not use the $CFG->creatornewroleid for this case.

        Attachments

          Activity

            People

            • Assignee:
              lazyfish Yu Zhang
              Reporter:
              skodak Petr Skoda
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Mar/07