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

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      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

            Assignee:
            Unassigned
            Reporter:
            skodak Petr Skoda
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: