MDL-38474 repository: Correct context when checking permissions to access a repository
Merge branch 'MDL-38474-22' of git://github.com/FMCorz/moodle into MOODLE_22_STABLE
weekly release 2.2.8+