mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
Merged argument fix from stable
This commit is contained in:
parent
72736a739c
commit
26f329ba61
@ -292,7 +292,7 @@ function isguest($userid=0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$context = get_context_instance(CONTEXT_SYSTEM, SITEID);
|
||||
$context = get_context_instance(CONTEXT_SYSTEM);
|
||||
|
||||
return has_capability('moodle/legacy:guest', $context, $userid, false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user