mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Merge branch 'w52_MDL-30951_m23_catsync' of git://github.com/skodak/moodle
This commit is contained in:
commit
792182713a
@ -99,7 +99,9 @@ class enrol_category_handler {
|
||||
|
||||
// now this is going to be a bit slow, take all enrolments in child courses and verify each separately
|
||||
$syscontext = get_context_instance(CONTEXT_SYSTEM);
|
||||
$roles = get_roles_with_capability('enrol/category:synchronised', CAP_ALLOW, $syscontext);
|
||||
if (!$roles = get_roles_with_capability('enrol/category:synchronised', CAP_ALLOW, $syscontext)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$plugin = enrol_get_plugin('category');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user