Fixed bug in the way we were checking if user is staff of a course.