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

    • Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 1.7.2, 1.8, 1.9
    • 1.8
    • Backup
    • None
    • MOODLE_18_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      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.

            lazyfish Yu Zhang
            skodak Petr Skoda
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.