Changeset - 28c73b42950a
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 4 months ago 2024-05-29 11:39:52
ben@sturm.com.au
Only link to reviews for the current conference
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
vendor/symposion/symposion/reviews/context_processors.py
Show inline comments
 
from django.conf import settings
 
from symposion.proposals.models import ProposalSection
 

	
 

	
 
def reviews(request):
 
    sections = []
 
    manage_sections = {}
 
    for section in ProposalSection.objects.all():
 
    for section in ProposalSection.objects.filter(section__conference__id=settings.CONFERENCE_ID):
 
        if request.user.has_perm("reviews.can_review_%s" % section.section.slug):
 
            sections.append(section)
 
        if request.user.has_perm("reviews.can_manage_%s" % section.section.slug):
 
            manage_sections.setdefault(section, []).append
 
    return {
 
        "review_sections": sections,
 
        "manage_sections": manage_sections
 
    }
 

	
0 comments (0 inline, 0 general)