Files @ 5d4b81ae8607
Branch filter:

Location: symposion_app/symposion/reviews/context_processors.py

David Ray
Merge pull request #5 from pyohio/update-requirements

Update requirements
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,
    }