I have two similar problems with our Moodle install.
1- If a user has two roles on a moodle course - one which does allow view of hidden courses and one which doesn't, the user is prevented access to the course returning notice:
"This course is currently unavailable to students"
2- If a user has two roles on a moodle course - one which can see unavailable modules and one which doesn't, the user cannot access unavailable forum discussions returning notice:
"You do not have the permission to view discussions in this forum"
In both cases the greater capabilities are not being used.
(Edited by Helen Foster to fix a tracker issue link - original submission Saturday, 12 September 2009, 06:30 PM)