mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-64528-master' of https://github.com/mackensen/moodle
This commit is contained in:
commit
6ada5b713b
5 changed files with 13 additions and 1 deletions
|
@ -75,6 +75,7 @@ class core_completion_external extends external_api {
|
|||
|
||||
$context = context_module::instance($cmid);
|
||||
self::validate_context($context);
|
||||
require_capability('moodle/course:togglecompletion', $context);
|
||||
|
||||
list($course, $cm) = get_course_and_cm_from_cmid($cmid);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue