IDisableCSRFProtection on @@moderate-publish-comment removed

This commit is contained in:
Katja Suess 2019-11-22 19:45:12 +01:00
parent f3c0b16a42
commit 8bd1992a7f

View File

@ -207,7 +207,6 @@ class PublishComment(BrowserView):
""" """
def __call__(self): def __call__(self):
alsoProvides(self.request, IDisableCSRFProtection)
comment = aq_inner(self.context) comment = aq_inner(self.context)
content_object = aq_parent(aq_parent(comment)) content_object = aq_parent(aq_parent(comment))
workflowTool = getToolByName(comment, 'portal_workflow', None) workflowTool = getToolByName(comment, 'portal_workflow', None)