MDL-37810 roles: get_user_roles_in_course returns all relevant roles
commitda655d9ee49933a5a6ba7226f2020c39eb9be6d5
authorJake Dallimore <jake@moodle.com>
Thu, 14 Sep 2017 06:10:48 +0000 (14 14:10 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 18 Sep 2017 00:59:29 +0000 (18 08:59 +0800)
treeff236e323d44e312f2f0863d71bf716a824b4de4
parentd07006f1fdd6b8d3f55c0f220f74a82a331ee00d
MDL-37810 roles: get_user_roles_in_course returns all relevant roles

Fixed to return both those roles in the profileroles site policy and
any roles which the current user can assign in the respective context,
meaning a user can see a link to any role they can assign.
lib/accesslib.php