accesslib: Fix dup enrolment entries in get_user_access_bycontext() and get_user_access_sitewide()
accesslib: Fix dup enrolment entries in get_user_access_bycontext() and get_user_access_sitewide()

Avoid duplicate entries in the ra array. Now it works too!

dilawar/moodle