Merge branch 'MDL-48580-master' of git://github.com/lameze/moodle

This commit is contained in:
Dan Poltawski 2014-12-22 13:41:11 +00:00
commit e9db67b43a

View File

@ -188,7 +188,7 @@ class report_log_renderable implements renderable {
// For site just return site errors option.
$sitecontext = context_system::instance();
if (empty($this->course) && has_capability('report/log:view', $sitecontext)) {
if ($this->course->id == SITEID && has_capability('report/log:view', $sitecontext)) {
$activities["site_errors"] = get_string("siteerrors");
return $activities;
}