Skip to content

Commit 2cf5f1c

Browse files
committed
grant ISOC CEO access to announcement tool, change announcement tool from option 'IAB Executive Director' to 'IAB Executive Administrative Manager'
- Legacy-Id: 7568
1 parent 0b5fc98 commit 2cf5f1c

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
@@ -34,8 +34,9 @@
3434
'RSOC Chair <rsoc-chair@iab.org>',
3535
'ISOC Board of Trustees <eburger@standardstrack.com>',
3636
'RFC Series Editor <rse@rfc-editor.org>',
37-
'IAB Executive Director <execd@iab.org>',
38-
'IETF Mentoring Program <mentoring@ietf.org>')
37+
'IAB Executive Administrative Manager <execd@iab.org>',
38+
'IETF Mentoring Program <mentoring@ietf.org>',
39+
'ISOC CEO <ceo@isoc.org>')
3940

4041
TO_LIST = ('IETF Announcement List <ietf-announce@ietf.org>',
4142
'I-D Announcement List <i-d-announce@ietf.org>',
@@ -111,6 +112,10 @@ def get_from_choices(user):
111112
group__acronym='mentor',
112113
name="chair"):
113114
f = (FROM_LIST[17],)
115+
elif Role.objects.filter(person=person,
116+
group__acronym='isoc',
117+
name="ceo"):
118+
f = (FROM_LIST[18],)
114119

115120
# NomCom
116121
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
@@ -17,9 +17,10 @@
1717
# -------------------------------------------------
1818
def check_access(user):
1919
'''
20-
This function takes a Django User object and returns true if the user has access to the
21-
Announcement app. Accepted roles are:
22-
Secretariat, IAD, IAB Chair, IETF Chair, RSOC Chair, IAOC Chair, NomCom Chair, RSE Chair
20+
This function takes a Django User object and returns true if the user has access to
21+
the Announcement app. Accepted roles are:
22+
Secretariat, IAD, IAB Chair, IETF Chair, RSOC Chair, IAOC Chair, NomCom Chair,
23+
RSE Chair, ISOC CEO
2324
'''
2425
person = user.person
2526
groups_with_access = ("iab", "rsoc", "ietf", "iaoc", "rse", "mentor")
@@ -37,6 +38,10 @@ def check_access(user):
3738
group__acronym='iab',
3839
name='execdir'):
3940
return True
41+
if Role.objects.filter(person=person,
42+
group__acronym='isoc',
43+
name='ceo'):
44+
return True
4045

4146
return False
4247

0 commit comments

Comments
 (0)