Skip to content
Snippets Groups Projects
Commit e8f18fcd authored by Ben Adida's avatar Ben Adida
Browse files

fixed bug in freezing an election where passwords was never an auth system

parent 35a13152
No related branches found
No related tags found
No related merge requests found
......@@ -299,7 +299,7 @@ class Election(models.Model, electionalgs.Election):
voter_types = [r['voter_type'] for r in self.voter_set.values('voter_type').distinct()]
if self.openreg:
if not 'password' in voter_types:
if not 'password' in voter_types and 'password' in auth_systems:
auth_systems.remove('password')
else:
auth_systems = [vt for vt in voter_types if vt in auth_systems]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment