Merged in [8155] from rcross@amsl.com:\n allow Team Chairs access to proceedings.
- Legacy-Id: 8165
Note: SVN reference [8155] has been migrated to Git commit c046739045
This commit is contained in:
commit
f7772cf6a4
|
@ -55,6 +55,7 @@ def has_role(user, role_names, *args, **kwargs):
|
|||
"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"),
|
||||
"Team Chair": Q(person=person,name="chair", group__type="team", group__state="active"),
|
||||
"Nomcom Chair": Q(person=person, name="chair", group__type="nomcom", group__state="active", group__acronym__icontains=kwargs.get('year', '0000')),
|
||||
"Nomcom Advisor": Q(person=person, name="advisor", group__type="nomcom", group__state="active", group__acronym__icontains=kwargs.get('year', '0000')),
|
||||
"Nomcom": Q(person=person, group__type="nomcom", group__state="active", group__acronym__icontains=kwargs.get('year', '0000')),
|
||||
|
|
|
@ -5,7 +5,6 @@ from django.contrib.auth.decorators import login_required
|
|||
from ietf.ietfauth.utils import has_role, role_required
|
||||
|
||||
|
||||
|
||||
class SecAuthMiddleware(object):
|
||||
"""
|
||||
Middleware component that performs custom auth check for secretariat
|
||||
|
@ -46,7 +45,7 @@ class SecAuthMiddleware(object):
|
|||
return login_required(view_func)(request,*view_args,**view_kwargs)
|
||||
elif self.is_unrestricted_url(request.path):
|
||||
return role_required('WG Chair','WG Secretary','RG Chair','IAB Group Chair',
|
||||
'Area Director','Secretariat')(view_func)(request,*view_args,**view_kwargs)
|
||||
'Area Director','Secretariat','Team Chair')(view_func)(request,*view_args,**view_kwargs)
|
||||
else:
|
||||
return role_required('Secretariat')(view_func)(request,*view_args,**view_kwargs)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue