'Either enrolls the user in course or redirects user to course about page
depending upon the option (Enroll, Don\'t Enroll) chosen by the user.'

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

    _next = urllib.quote_plus(request.GET.get('next', 'info'), safe='/:?=')
    course_key = CourseKey.from_string(course_id)
    enroll = ('enroll' in request.POST)
    if enroll:
        add_enrollment(request.user.username, course_id)
        log.info(u'User    %s    enrolled    in    %s    via    `enroll_staff`    view', request.user.username, course_id)
        return redirect(_next)
    return redirect(reverse('about_course', args=[unicode(course_key)]))
