diff --git a/hypha/apply/review/views.py b/hypha/apply/review/views.py index a6e75b4e30a6dd078c26dff4e64bb6ba97f75f47..d4ed8a4dbc0d158b6a5559b87ff76482f5fffc0e 100644 --- a/hypha/apply/review/views.py +++ b/hypha/apply/review/views.py @@ -58,6 +58,7 @@ def get_fields_for_stage(submission): return forms[0].form.form_fields +@method_decorator(login_required, name='dispatch') class ReviewEditView(UserPassesTestMixin, BaseStreamForm, UpdateView): submission_form_class = ReviewModelForm model = Review @@ -396,6 +397,7 @@ class ReviewListView(ListView): ) +@method_decorator(login_required, name='dispatch') class ReviewDeleteView(UserPassesTestMixin, DeleteView): model = Review raise_exception = True