Skip to content

Commit 5497fa4

Browse files
committed
Fix to permit secretariat staff to post liaisons on behalf of liaison managers, assuming the permissions of the person they post on behalf of for this purpose.
- Legacy-Id: 3046
2 parents 73ebccb + 56bd4e0 commit 5497fa4

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

ietf/liaisons/views.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,11 @@ def get_info(request):
7676
'poc': [i.email() for i in to_entity.get_poc()],
7777
'needs_approval': from_entity.needs_approval(person=person),
7878
'post_only': from_entity.post_only(person=person, user=request.user)})
79-
if is_secretariat(request.user):
80-
if from_entity:
79+
if is_secretariat(request.user):
8180
full_list = [(i.pk, i.email()) for i in from_entity.full_user_list()]
8281
full_list.sort(lambda x,y: cmp(x[1], y[1]))
83-
else:
84-
full_list = []
85-
full_list = [(person.pk, person.email())] + full_list
86-
result.update({'full_list': full_list})
82+
full_list = [(person.pk, person.email())] + full_list
83+
result.update({'full_list': full_list})
8784
json_result = simplejson.dumps(result)
8885
return HttpResponse(json_result, mimetype='text/javascript')
8986

0 commit comments

Comments
 (0)