From 5f038880656b91dfe844a72adc65dd56107b58eb Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 8 Jul 2014 07:30:59 +0000 Subject: [PATCH] Adjusted the permissions checking in has_role to accept bof chairs and secretaries. - Legacy-Id: 8054 --- ietf/ietfauth/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/ietfauth/utils.py b/ietf/ietfauth/utils.py index 950eee817..96bca58b9 100644 --- a/ietf/ietfauth/utils.py +++ b/ietf/ietfauth/utils.py @@ -51,8 +51,8 @@ def has_role(user, role_names, *args, **kwargs): "IRTF Chair": Q(person=person, name="chair", group__acronym="irtf"), "IAB Chair": Q(person=person, name="chair", group__acronym="iab"), "IAB Group Chair": Q(person=person, name="chair", group__type="iab", group__state="active"), - "WG Chair": Q(person=person,name="chair", group__type="wg", group__state="active"), - "WG Secretary": Q(person=person,name="secr", group__type="wg", group__state="active"), + "WG Chair": Q(person=person,name="chair", group__type="wg", group__state__in=["active","bof"]), + "WG Secretary": Q(person=person,name="secr", group__type="wg", group__state__in=["active","bof"]), "RG Chair": Q(person=person,name="chair", group__type="rg", group__state="active"), "RG Secretary": Q(person=person,name="secr", group__type="rg", group__state="active"), "Nomcom Chair": Q(person=person, name="chair", group__type="nomcom", group__state="active", group__acronym__icontains=kwargs.get('year', '0000')),