mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
NOBUG: Added missing call to require login to grade/edit/letter/index.php
This commit is contained in:
parent
e44bc5a12d
commit
76780d8884
1 changed files with 2 additions and 1 deletions
|
@ -36,8 +36,9 @@ if (!$course = $DB->get_record('course', array('id' => $courseid))) {
|
|||
print_error('nocourseid');
|
||||
}
|
||||
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
require_login($course);
|
||||
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
if (!has_capability('moodle/grade:manage', $context) and !has_capability('moodle/grade:manageletters', $context)) {
|
||||
print_error('nopermissiontoviewletergrade');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue