3030from ietf .utils .response import permission_denied
3131
3232EMAIL_ALIASES = {
33- 'IETFCHAIR' :'The IETF Chair <chair@ietf.org>' ,
34- 'IESG' :'The IESG <iesg@ietf.org>' ,
35- 'IAB' :'The IAB <iab@iab.org>' ,
36- 'IABCHAIR' :'The IAB Chair <iab-chair@iab.org>' ,
37- 'IABEXECUTIVEDIRECTOR' :'The IAB Executive Director <execd@iab.org>' }
33+ "IETFCHAIR" : "The IETF Chair <chair@ietf.org>" ,
34+ "IESG" : "The IESG <iesg@ietf.org>" ,
35+ "IAB" : "The IAB <iab@iab.org>" ,
36+ "IABCHAIR" : "The IAB Chair <iab-chair@iab.org>" ,
37+ }
38+
3839
3940# -------------------------------------------------
4041# Helper Functions
@@ -84,8 +85,6 @@ def _find_person_in_emails(liaison, person):
8485 return True
8586 elif addr in ('iab@iab.org' , 'iab-chair@iab.org' ) and has_role (person .user , "IAB Chair" ):
8687 return True
87- elif addr in ('execd@iab.org' , ) and has_role (person .user , "IAB Executive Director" ):
88- return True
8988
9089 return False
9190
@@ -110,7 +109,6 @@ def get_cc(group):
110109 elif group .acronym in ('iab' ):
111110 emails .append (EMAIL_ALIASES ['IAB' ])
112111 emails .append (EMAIL_ALIASES ['IABCHAIR' ])
113- emails .append (EMAIL_ALIASES ['IABEXECUTIVEDIRECTOR' ])
114112 elif group .type_id == 'area' :
115113 emails .append (EMAIL_ALIASES ['IETFCHAIR' ])
116114 ad_roles = group .role_set .filter (name = 'ad' )
@@ -151,7 +149,6 @@ def get_contacts_for_group(group):
151149 contacts .append (EMAIL_ALIASES ['IETFCHAIR' ])
152150 elif group .acronym == 'iab' :
153151 contacts .append (EMAIL_ALIASES ['IABCHAIR' ])
154- contacts .append (EMAIL_ALIASES ['IABEXECUTIVEDIRECTOR' ])
155152 elif group .acronym == 'iesg' :
156153 contacts .append (EMAIL_ALIASES ['IESG' ])
157154
@@ -171,7 +168,7 @@ def needs_approval(group,person):
171168 user = person .user
172169 if group .acronym in ('ietf' ,'iesg' ) and has_role (user , 'IETF Chair' ):
173170 return False
174- if group .acronym == 'iab' and ( has_role (user ,'IAB Chair' ) or has_role ( user , 'IAB Executive Director' ) ):
171+ if group .acronym == 'iab' and has_role (user ,'IAB Chair' ):
175172 return False
176173 if group .type_id == 'area' and group .role_set .filter (name = 'ad' ,person = person ):
177174 return False
0 commit comments