Moodle

Fix use of course:create in restore

Details

  • Type: Sub-task Sub-task
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8
  • Fix Version/s: STABLE backlog
  • 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

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated: