'Display enroll staff view to global staff user with `Enroll` and `Don\'t Enroll` options.'

@method_decorator(require_global_staff)
@method_decorator(ensure_valid_course_key)
def get(self, request, course_id):

    user = request.user
    course_key = CourseKey.from_string(course_id)
    with modulestore().bulk_operations(course_key):
        course = get_course_with_access(user, 'load', course_key)
        if (not registered_for_course(course, user)):
            context = {'course': course, 'csrftoken': csrf(request)['csrf_token']}
            return render_to_response(self.template_name, context)
