Skip to content
Snippets Groups Projects
Commit 68a42902 authored by Julia Hansbrough's avatar Julia Hansbrough
Browse files

Merge pull request #1589 from edx/flowerhack/fix/remove-duplicate-course-helper-code

Removed duplicate code
parents 0d1dc8e2 8b6568f4
No related branches found
No related tags found
No related merge requests found
......@@ -65,21 +65,6 @@ def add_to_course_staff(username, course_num):
user.groups.add(group)
@world.absorb
def add_to_course_staff(username, course_num):
"""
Add the user with `username` to the course staff group
for `course_num`.
"""
# Based on code in lms/djangoapps/courseware/access.py
group_name = "instructor_{}".format(course_num)
group, _ = Group.objects.get_or_create(name=group_name)
group.save()
user = User.objects.get(username=username)
user.groups.add(group)
@world.absorb
def clear_courses():
# Flush and initialize the module store
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment