Verified Commit e0f381b3 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue 🚼
Browse files

Fix an ACL check issue for DownloadStatements

parent 1ee3376b
...@@ -511,6 +511,8 @@ class UpdateKeycheck(RequirementMixin, View): ...@@ -511,6 +511,8 @@ class UpdateKeycheck(RequirementMixin, View):
class DownloadStatements(VisitProcessMixin, View): class DownloadStatements(VisitProcessMixin, View):
require_visit_perms = "view_intent"
def get(self, request, *args, **kw): def get(self, request, *args, **kw):
data = self.process.get_statements_as_mbox() data = self.process.get_statements_as_mbox()
res = http.HttpResponse(data, content_type="text/plain") res = http.HttpResponse(data, content_type="text/plain")
......
Supports Markdown
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