Skip to content

Commit

Permalink
Merge branch 'MDL-48580-master' of git://github.com/lameze/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Dec 22, 2014
2 parents d61ecff + 64a5ede commit e9db67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/log/classes/renderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function get_activities_list() {

// 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;
}
Expand Down

0 comments on commit e9db67b

Please sign in to comment.