From d43d42bbc35bcc9aa3dddb53f70004d0bb81ff46 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Wed, 29 Jun 2016 15:16:24 +1000 Subject: [PATCH] =?UTF-8?q?Fixes=20#21=20=E2=80=94=20the=20check=5Fspeaker?= =?UTF-8?q?=20argument=20to=20proposals=5Fgenerator=20is=20*false*=20for?= =?UTF-8?q?=20section=20chairs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- symposion/reviews/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/symposion/reviews/views.py b/symposion/reviews/views.py index c1ece5bb..4ac472f4 100644 --- a/symposion/reviews/views.py +++ b/symposion/reviews/views.py @@ -92,7 +92,9 @@ def review_section(request, section_slug, assigned=False, reviewed="all"): speaker__user=request.user) reviewed = "user_not_reviewed" - proposals = proposals_generator(request, queryset) + # lca2017 #21 -- chairs want to be able to see their own proposals in the list + check_speaker = not request.user.has_perm("reviews.can_manage_%s" % section_slug) + proposals = proposals_generator(request, queryset, check_speaker=check_speaker) ctx = { "proposals": proposals,