-
Improvement
-
Resolution: Fixed
-
Minor
-
2.6, 2.7, 2.9, 3.2, 3.3.3, 3.4, 3.5, 3.6.4, 3.7, 3.8, 3.9.1, 3.11, 4.1, 4.2, 4.4
-
MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_29_STABLE, MOODLE_311_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_404_STABLE
-
MOODLE_404_STABLE
-
MDL-43056-main -
-
6
-
Moppies Kanban, Team Hedgehog 2023 Sprint 4.2, Team Hedgehog 2023 Sprint 4.3, Team Hedgehog 2023 Review 4
With the new functionality of uploading courses via csv, I cannot see how to enable managers to upload courses in the same way as they can upload users. There is a moodle/site:uploadusers capability so would it be helpful to have a moodle/site:uploadcourses capability? (Otherwise how can managers perform this action?)
Update about the implementation (and why it took so long)
Before this issue, the uploadcourse tool was not checking any capabilities at all (for example, create/update/restore courses, modify idnumber or summary, assign roles). It was assuming that the current user is a super-user and can do everything. Apart from it there were a lot of missing checks about creating enrolment methods. The work on enrolment methods was so big that it was split from this issue, see linked issues.
In order to allow non-admin users to use the uploadcourse tool we had to first improve validation and permission checks inside the tool. With this patch anybody with the capability 'tool/uploadcourse:use' will be able to access the uploadcourse tool but they still need all other capabilities such as 'moodle/course:create', 'moodle/course:update', 'moodle/course:delete', etc in order to create/update/delete courses
- caused a regression
-
MDL-80875 Wrong validation in upload course
- Closed
-
MDL-81365 Wrong validation in upload course - part 2
- Closed
-
MDL-81569 Some core tests fail if add-on plugins define custom roles
- Closed
- has been marked as being related by
-
MDL-66135 Add support for custom course fields to Upload courses
- Closed
- is blocked by
-
MDL-61532 Setting course enrolment method cohort does not work for csv upload
- Closed
-
MDL-73838 Extend upload courses functionality to support more enrollment methods
- Closed
-
MDL-43127 tool_uploadcourse is not compatible with all enrolment plugins
- Closed
-
MDL-43820 tool_uploadcourse supports multiple enrolment instances of the same type
- Closed
-
MDL-48391 tool_uploadcourse should check if enrolment method can be disabled/deleted
- Closed
- is duplicated by
-
MDL-78582 Capability: Upload course list function / role manager
- Closed
- Testing discovered
-
MDL-80599 Provided password is ignored when uploading course via csv
- Closed