Fixes #21 — the check_speaker argument to proposals_generator is *false* for section chairs.

This commit is contained in:
Christopher Neugebauer 2016-06-29 15:16:24 +10:00
parent f56ce51459
commit d43d42bbc3

View file

@ -92,7 +92,9 @@ def review_section(request, section_slug, assigned=False, reviewed="all"):
speaker__user=request.user) speaker__user=request.user)
reviewed = "user_not_reviewed" 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 = { ctx = {
"proposals": proposals, "proposals": proposals,