Skip to content

Commit

Permalink
MDL-57611 report_log: Fix capability checks for viewing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Ebarvia committed Aug 11, 2017
1 parent f3625f4 commit 93e071c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report/log/lib.php
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 93e071c

Please sign in to comment.