Skip to content
Snippets Groups Projects
Commit b50bcd00 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Ensure only staff can access the reviews

parent e7881107
No related branches found
No related tags found
No related merge requests found
from django.shortcuts import get_object_or_404 from django.shortcuts import get_object_or_404
from django.utils.decorators import method_decorator
from django.views.generic import CreateView, ListView from django.views.generic import CreateView, ListView
from opentech.apply.funds.models import ApplicationSubmission from opentech.apply.funds.models import ApplicationSubmission
from opentech.apply.users.decorators import staff_required
from .forms import ConceptReviewForm, ProposalReviewForm from .forms import ConceptReviewForm, ProposalReviewForm
from .models import Review from .models import Review
...@@ -55,6 +57,7 @@ class ReviewCreateView(CreateView): ...@@ -55,6 +57,7 @@ class ReviewCreateView(CreateView):
return self.submission.get_absolute_url() return self.submission.get_absolute_url()
@method_decorator(staff_required, name='dispatch')
class ReviewListView(ListView): class ReviewListView(ListView):
model = Review model = Review
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment