mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
Merge branch 'MDL-57611-master' of https://github.com/jebarviabb/moodle
This commit is contained in:
commit
fa435675ec
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user