Skip to content

Commit

Permalink
Merge branch 'MDL-57611-master' of https://github.com/jebarviabb/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Aug 15, 2017
2 parents 69e0850 + 93e071c commit fa43567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report/log/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ function report_log_can_access_user_report($user, $course) {
$today = false;
$all = false;

if (has_capability('report/log:view', $coursecontext)) {
if (has_capability('report/log:viewtoday', $coursecontext)) {
$today = true;
}
if (has_capability('report/log:viewtoday', $coursecontext)) {
if (has_capability('report/log:view', $coursecontext)) {
$all = true;
}

Expand Down

0 comments on commit fa43567

Please sign in to comment.