Fixes #21 — the check_speaker argument to proposals_generator is *false* for section chairs.
This commit is contained in:
parent
f56ce51459
commit
d43d42bbc3
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue