enrol/manual: Fix calls to get_users_by_capability() to avoid ra
enrol/manual: Fix calls to get_users_by_capability() to avoid ra

get_users_by_capability() can no longer refer to properties of role
assignments or roles, as the capability aggregate is indirect.

MDL-12452

dilawar/moodle