1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

MDL-57611 report_log: Fix capability checks for viewing logs

This commit is contained in:
Josh Ebarvia 2017-08-11 13:01:50 +09:30
parent f3625f47c5
commit 93e071c8ec

@ -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;
}