mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-10833 course theme in live logs fixed
This commit is contained in:
parent
6db001b535
commit
651f7cf277
@ -7,12 +7,12 @@
|
||||
$id = required_param('id', PARAM_INT);
|
||||
$page = optional_param('page', 0, PARAM_INT); // which page to show
|
||||
|
||||
require_login();
|
||||
|
||||
if (! $course = get_record("course", "id", $id) ) {
|
||||
error("That's an invalid course id");
|
||||
}
|
||||
|
||||
require_login($course);
|
||||
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
if (!has_capability('moodle/site:viewreports', $context)) {
|
||||
error('You need do not have the required permission to view this report');
|
||||
|
Loading…
x
Reference in New Issue
Block a user