Fixes anonymous liaison detail view. Fixes Secretariat group name. Fixes #362
- Legacy-Id: 2481
This commit is contained in:
parent
9c9f0417c2
commit
f581e0fb8e
|
@ -1,7 +1,7 @@
|
|||
from ietf.idtracker.models import Role, PersonOrOrgInfo
|
||||
|
||||
|
||||
LIAISON_EDIT_GROUPS = ['Liaison_Manager', 'Secreatriat']
|
||||
LIAISON_EDIT_GROUPS = ['Liaison_Manager', 'Secretariat']
|
||||
|
||||
def get_ietf_chair():
|
||||
person = PersonOrOrgInfo.objects.filter(role=Role.IETF_CHAIR)
|
||||
|
|
|
@ -155,7 +155,8 @@ def liaison_approval_detail(request, object_id):
|
|||
def liaison_detail(request, object_id):
|
||||
public_liaisons = LiaisonDetail.objects.filter(Q(approval__isnull=True)|Q(approval__approved=True)).order_by("-submitted_date")
|
||||
can_edit = False
|
||||
if request.user.groups.filter(name__in=LIAISON_EDIT_GROUPS):
|
||||
user = request.user
|
||||
if user.is_authenticated() and user.groups.filter(name__in=LIAISON_EDIT_GROUPS):
|
||||
can_edit = True
|
||||
return object_detail(request,
|
||||
public_liaisons,
|
||||
|
|
Loading…
Reference in a new issue