Fix bug with override removal conditions

This was failing to delete overrides stemming from proctoring which
pre-date the corresponding change.

JIRA:PROD-704
This commit is contained in:
Matt Hughes
2019-09-19 10:19:55 -04:00
committed by Matt Hughes
parent dab38a5ef3
commit 09d5c87647

View File

@@ -108,8 +108,10 @@ def undo_override_subsection_grade(user_id, course_key_or_id, usage_key_or_id, f
return
if override is not None and (
not feature or feature == override.system):
not feature or not override.system or feature == override.system):
override.delete(feature=feature)
else:
return
# Cache a new event id and event type which the signal handler will use to emit a tracking log event.
create_new_event_transaction_id()