From 14dea7eafa5fa3a366db8c1d3c3b6bcce4d6cf6f Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sun, 19 Jun 2016 18:38:14 +1000 Subject: [PATCH] Fixes deletion of reviews --- symposion/reviews/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symposion/reviews/views.py b/symposion/reviews/views.py index 7a854f7e..c1ece5bb 100644 --- a/symposion/reviews/views.py +++ b/symposion/reviews/views.py @@ -292,7 +292,7 @@ def review_detail(request, pk): @require_POST def review_delete(request, pk): review = get_object_or_404(Review, pk=pk) - section_slug = review.section.slug + section_slug = review.section if not request.user.has_perm("reviews.can_manage_%s" % section_slug): return access_not_permitted(request)