Skip to content

Commit 97fd349

Browse files
author
Martin Qvist
committed
Fixed bug in import-roles.py
- Legacy-Id: 3413
1 parent 152dc25 commit 97fd349

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

redesign/importing/import-roles.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
# SDOAuthorizedIndividual, WGDelegate
3434

3535
area_director_role = name(RoleName, "ad", "Area Director")
36+
inactive_area_director_role = name(RoleName, "ex-ad", "Ex Area Director")
3637
chair_role = name(RoleName, "chair", "Chair")
3738
editor_role = name(RoleName, "editor", "Editor")
3839
secretary_role = name(RoleName, "secr", "Secretary")
@@ -186,7 +187,7 @@
186187

187188
email = get_or_create_email(o, create_fake=False)
188189
# current ADs are imported below
189-
if o.user_level == IESGLogin.SECRETARIAT_LEVEL:
190+
if email and o.user_level == IESGLogin.SECRETARIAT_LEVEL:
190191
if not Role.objects.filter(name=secretary_role, email=email):
191192
Role.objects.create(name=secretary_role, group=Group.objects.get(acronym="secretariat"), email=email)
192193

0 commit comments

Comments
 (0)