mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
Merge branch 'patch_view_anon_event_MDL-66213' of git://github.com/Dave-B/moodle
This commit is contained in:
commit
e3f29b01c0
5 changed files with 26 additions and 3 deletions
|
@ -180,7 +180,11 @@ class report_loglive_renderable implements renderable {
|
|||
$filter->logreader = $readers[$this->selectedlogreader];
|
||||
$filter->date = $this->date;
|
||||
$filter->orderby = $this->order;
|
||||
$filter->anonymous = 0;
|
||||
|
||||
$context = context_course::instance($filter->courseid);
|
||||
if (!has_capability('moodle/site:viewanonymousevents', $context)) {
|
||||
$filter->anonymous = 0;
|
||||
}
|
||||
|
||||
return $filter;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue