add IAB executive director to announcement access list

- Legacy-Id: 5603
This commit is contained in:
Ryan Cross 2013-03-29 15:45:08 +00:00
parent f04d424e6a
commit 17dbec6d0c
2 changed files with 10 additions and 1 deletions
ietf/secr/announcement

View file

@ -32,7 +32,8 @@ FROM_LIST = ('IETF Secretariat <ietf-secretariat@ietf.org>',
'The IETF Trust <tme@multicasttech.com>',
'RSOC Chair <rsoc-chair@iab.org>',
'ISOC Board of Trustees <eburger@standardstrack.com>',
'RFC Series Editor <rse@rfc-editor.org>')
'RFC Series Editor <rse@rfc-editor.org>',
'IAB Executive Director <execd@iab.org>')
TO_LIST = ('IETF Announcement List <ietf-announce@ietf.org>',
'I-D Announcement List <i-d-announce@ietf.org>',
@ -106,6 +107,10 @@ def get_from_choices(user):
group__acronym='rse',
name="chair"):
f = (FROM_LIST[15],)
elif Role.objects.filter(person=person,
group__acronym='iab',
name='execdir'):
f = (FROM_LIST[6],FROM_LIST[16])
return zip(f,f)
def get_to_choices():

View file

@ -34,6 +34,10 @@ def check_access(user):
group__type="ietf",
person=person):
return True
if Role.objects.filter(person=person,
group__acronym='iab',
name='execdir'):
return True
return False