mirror of
https://github.com/moodle/moodle.git
synced 2025-03-30 13:32:50 +02:00
In fact, rather than fix the old logic, I noticed that the correct logic was already implemented in get_users_by_capability. So, I refactored to extract the working version into a function, which it turns out can have exactly the same API as get_with_capability_join, which was convenient.