Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13847 backup/restore issues meta
  3. MDL-8905

Fix use of course:create in restore

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.8
    • None
    • Backup
    • None
    • MOODLE_18_STABLE

    Description

      At present the restore can be done only within the same category, it can be a problem if creator can not edit categories.

      Solution:

      • add a category selector for restore into new course
      • review contexts in course:create capability checks (seems it is checked only in system context, but it can be defined in category context too)
      • use the $CFG->creatornewroleid when restoring into new course and user does not have view or assign capability

      Attachments

        Activity

          People

            Unassigned Unassigned
            skodak Petr Skoda
            Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: