'Sets the \'course_badges_enabled\' parameter.'

def __init__(self, course_id=None, modulestore=None):

    if (not (course_id and modulestore)):
        return
    course = modulestore.get_course(course_id)
    if course:
        self.course_badges_enabled = course.issue_badges
