Skip to content

Commit

Permalink
[admin/audiences] bypass registration settings if admin
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonygego committed Jan 5, 2022
1 parent 5ccd530 commit 6694a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inginious/frontend/pages/course_admin/audience_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def POST_AUTH(self, courseid, audienceid=''): # pylint: disable=arguments-diffe
# Display the page
return self.display_page(course, audienceid, msg, error)
elif username not in student_list:
self.user_manager.course_register_user(course, username)
self.user_manager.course_register_user(course, username, force=True)
self.database.audiences.update_one(
{"_id": ObjectId(audiences_dict[0]["_id"])},
{"$set": {"students": audiences_dict[0]["students"],
Expand Down

0 comments on commit 6694a40

Please sign in to comment.