Verified Commit 3330f9a8 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Enable booksale to freshmen before 01-09

parent 867f9dfc
......@@ -3,7 +3,9 @@ import os
from datetime import datetime, date
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.shortcuts import get_object_or_404, render
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from sendfile import sendfile
......@@ -121,4 +123,9 @@ def submit_summary(request, id=None):
def books(request):
return render(request, 'education/books.html')
if (request.member and request.member.is_authenticated and
(request.member.current_membership or
(request.member.earliest_membership and
request.member.earliest_membership.since >
return render(request, 'education/books.html')
return HttpResponse(status=403)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment