def can_edit_determination(user, determination, submission):
if submission.is_archive:
return False
outcome = transition_from_outcome(determination.outcome, submission)
valid_outcomes = determination_actions(user, submission)
return outcome in valid_outcomes