From 4309a4bb503cd24af7a1ae73722254d9edbe1759 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Fri, 10 Feb 2023 14:15:16 -0600 Subject: [PATCH] fix: allow rswg chairs to request sessions (#5124) Fixes #5122 --- ietf/ietfauth/utils.py | 1 + ietf/secr/sreq/views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/ietfauth/utils.py b/ietf/ietfauth/utils.py index 1a84dfafce..029342e7fa 100644 --- a/ietf/ietfauth/utils.py +++ b/ietf/ietfauth/utils.py @@ -82,6 +82,7 @@ def has_role(user, role_names, *args, **kwargs): "Program Lead": Q(person=person,name="lead", group__type="program", group__state="active"), "Program Secretary": Q(person=person,name="secr", group__type="program", group__state="active"), "Program Chair": Q(person=person,name="chair", group__type="program", group__state="active"), + "EDWG Chair": Q(person=person, name="chair", group__type="edwg", group__state="active"), "Nomcom Chair": Q(person=person, name="chair", group__type="nomcom", group__acronym__icontains=kwargs.get('year', '0000')), "Nomcom Advisor": Q(person=person, name="advisor", group__type="nomcom", group__acronym__icontains=kwargs.get('year', '0000')), "Nomcom": Q(person=person, group__type="nomcom", group__acronym__icontains=kwargs.get('year', '0000')), diff --git a/ietf/secr/sreq/views.py b/ietf/secr/sreq/views.py index a01f1d5ae3..8091835f58 100644 --- a/ietf/secr/sreq/views.py +++ b/ietf/secr/sreq/views.py @@ -31,7 +31,7 @@ # Globals # ------------------------------------------------- # TODO: This needs to be replaced with something that pays attention to groupfeatures -AUTHORIZED_ROLES=('WG Chair','WG Secretary','RG Chair','IAB Group Chair','Area Director','Secretariat','Team Chair','IRTF Chair','Program Chair','Program Lead','Program Secretary') +AUTHORIZED_ROLES=('WG Chair','WG Secretary','RG Chair','IAB Group Chair','Area Director','Secretariat','Team Chair','IRTF Chair','Program Chair','Program Lead','Program Secretary', 'EDWG Chair') # ------------------------------------------------- # Helper Functions