add allowed groups and required courses to course details