Fixed error messages on module page displaying incorrect message when logged in but not part of that course.