symposion_app/symposion/reviews/context_processors.py
2014-01-13 16:49:40 -05:00

11 lines
322 B
Python

from symposion.proposals.models import ProposalSection
def reviews(request):
sections = []
for section in ProposalSection.objects.all():
if request.user.has_perm("reviews.can_review_%s" % section.section.slug):
sections.append(section)
return {
"review_sections": sections,
}