mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-36611 outcome: Set page context when editing outcome
This commit is contained in:
parent
d9520bc04e
commit
f3ced08622
@ -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