modifying get_user_by_capability to handle requests on frontpage courses and sub contexts. MDL-11143
modifying get_user_by_capability to handle requests on frontpage courses and sub contexts. MDL-11143

dilawar/moodle