Merge pull request #22 from lca2017/chrisjrn/21-chairs-can-see-own-proposals

Lets programme chairs see their own proposals.
This commit is contained in:
Scott Bragg 2016-06-29 22:26:46 +10:00 committed by GitHub
commit 7225dcd660

View file

@ -94,7 +94,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,