mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-36611-master' of git://github.com/junpataleta/moodle
This commit is contained in:
commit
988ff9f57f
@ -70,6 +70,7 @@ if ($id) {
|
||||
$outcome_rec->courseid = $courseid;
|
||||
require_login();
|
||||
require_capability('moodle/grade:manage', $systemcontext);
|
||||
$PAGE->set_context($systemcontext);
|
||||
}
|
||||
|
||||
} else if ($courseid){
|
||||
@ -87,6 +88,7 @@ if ($id) {
|
||||
} else {
|
||||
require_login();
|
||||
require_capability('moodle/grade:manage', $systemcontext);
|
||||
$PAGE->set_context($systemcontext);
|
||||
|
||||
/// adding new outcome from admin section
|
||||
$outcome_rec = new stdClass();
|
||||
|
Loading…
x
Reference in New Issue
Block a user