Skip to content

Commit 7603f4e

Browse files
committed
Merged [7568] from rcross@amsl.com: grant ISOC CEO access to announcement tool, change announcement tool from option 'IAB Executive Director' to 'IAB Executive Administrative Manager'
- Legacy-Id: 7573 Note: SVN reference [7568] has been migrated to Git commit 2cf5f1c
2 parents b8cd069 + 2cf5f1c commit 7603f4e

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

ietf/secr/announcement/forms.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232
'RSOC Chair <rsoc-chair@iab.org>',
3333
'ISOC Board of Trustees <eburger@standardstrack.com>',
3434
'RFC Series Editor <rse@rfc-editor.org>',
35-
'IAB Executive Director <execd@iab.org>',
36-
'IETF Mentoring Program <mentoring@ietf.org>')
35+
'IAB Executive Administrative Manager <execd@iab.org>',
36+
'IETF Mentoring Program <mentoring@ietf.org>',
37+
'ISOC CEO <ceo@isoc.org>')
3738

3839
TO_LIST = ('IETF Announcement List <ietf-announce@ietf.org>',
3940
'I-D Announcement List <i-d-announce@ietf.org>',
@@ -109,6 +110,10 @@ def get_from_choices(user):
109110
group__acronym='mentor',
110111
name="chair"):
111112
f = (FROM_LIST[17],)
113+
elif Role.objects.filter(person=person,
114+
group__acronym='isoc',
115+
name="ceo"):
116+
f = (FROM_LIST[18],)
112117

113118
# NomCom
114119
nomcoms = Role.objects.filter(name="chair",

ietf/secr/announcement/views.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# -------------------------------------------------
1515
def check_access(user):
1616
'''
17-
This function takes a Django User object and returns true if the user has access to the
18-
Announcement app. Accepted roles are:
19-
Secretariat, IAD, IAB Chair, IETF Chair, RSOC Chair, IAOC Chair, NomCom Chair, RSE Chair
17+
This function takes a Django User object and returns true if the user has access to
18+
the Announcement app. Accepted roles are:
19+
Secretariat, IAD, IAB Chair, IETF Chair, RSOC Chair, IAOC Chair, NomCom Chair,
20+
RSE Chair, ISOC CEO
2021
'''
2122
person = user.person
2223
groups_with_access = ("iab", "rsoc", "ietf", "iaoc", "rse", "mentor")
@@ -34,6 +35,10 @@ def check_access(user):
3435
group__acronym='iab',
3536
name='execdir'):
3637
return True
38+
if Role.objects.filter(person=person,
39+
group__acronym='isoc',
40+
name='ceo'):
41+
return True
3742

3843
return False
3944

0 commit comments

Comments
 (0)