mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-39876-master' of git://github.com/sammarshallou/moodle
Conflicts: course/lib.php
This commit is contained in:
commit
6eee89bc8f
191 changed files with 280 additions and 274 deletions
|
@ -30,7 +30,7 @@ $courseid = required_param('id', PARAM_INT);
|
|||
|
||||
$PAGE->set_url('/grade/edit/outcome/course.php', array('id'=>$courseid));
|
||||
|
||||
$course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);
|
||||
$course = get_course($courseid);
|
||||
|
||||
/// Make sure they can even access this course
|
||||
require_login($course);
|
||||
|
|
|
@ -75,7 +75,7 @@ if ($id) {
|
|||
} else if ($courseid){
|
||||
$heading = get_string('addoutcome', 'grades');
|
||||
/// adding new outcome from course
|
||||
$course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);
|
||||
$course = get_course($courseid);
|
||||
require_login($course);
|
||||
$context = context_course::instance($course->id);
|
||||
require_capability('moodle/grade:manage', $context);
|
||||
|
|
|
@ -34,7 +34,7 @@ $PAGE->set_pagelayout('admin');
|
|||
|
||||
/// Make sure they can even access this course
|
||||
if ($courseid) {
|
||||
$course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);
|
||||
$course = get_course($courseid);
|
||||
require_login($course);
|
||||
$context = context_course::instance($course->id);
|
||||
require_capability('moodle/grade:manageoutcomes', $context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue