Skip to content

Commit d6422c0

Browse files
committed
grant IETF Trust Chair permissions for Announcement Tool. commit ready for merge.
- Legacy-Id: 8045
1 parent a16dc35 commit d6422c0

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

ietf/secr/announcement/forms.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'IETF Administrative Director <iad@ietf.org>',
2929
'IETF Executive Director <exec-director@ietf.org>',
3030
'The IAOC <bob.hinden@gmail.com>',
31-
'The IETF Trust <tme@multicasttech.com>',
31+
'The IETF Trust <ietf-trust@ietf.org>',
3232
'RSOC Chair <rsoc-chair@iab.org>',
3333
'ISOC Board of Trustees <eburger@standardstrack.com>',
3434
'RFC Series Editor <rse@rfc-editor.org>',
@@ -114,6 +114,10 @@ def get_from_choices(user):
114114
group__acronym='isoc',
115115
name="ceo"):
116116
f = (FROM_LIST[18],)
117+
elif Role.objects.filter(person=person,
118+
group__acronym='ietf-trust',
119+
name="chair"):
120+
f = (FROM_LIST[12],)
117121

118122
# NomCom
119123
nomcoms = Role.objects.filter(name="chair",

ietf/secr/announcement/views.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
def check_access(user):
1616
'''
1717
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
18+
the Announcement app.
2119
'''
2220
person = user.person
23-
groups_with_access = ("iab", "rsoc", "ietf", "iaoc", "rse", "mentor")
21+
groups_with_access = ("iab", "rsoc", "ietf", "iaoc", "rse", "mentor","ietf-trust")
2422
if Role.objects.filter(person=person,
2523
group__acronym__in=groups_with_access,
2624
name="chair") or has_role(user, ["Secretariat","IAD"]):

0 commit comments

Comments
 (0)