Added asserts to ensure course_ids are course key objects.
Merge pull request #3821 from edx/ok-permissions-asserts

Added asserts to ensure course_ids are course key objects.