From 1c25c5c10adcbf2c004b398cf081d07ea80fa47e Mon Sep 17 00:00:00 2001 From: maartenkling Date: Tue, 13 Nov 2012 09:40:32 +0100 Subject: [PATCH] add permissions to type, fixes #11497 --- plone/app/discussion/comment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plone/app/discussion/comment.py b/plone/app/discussion/comment.py index b16101e..a14eec8 100644 --- a/plone/app/discussion/comment.py +++ b/plone/app/discussion/comment.py @@ -41,6 +41,8 @@ from Products.CMFCore.CMFCatalogAware import CatalogAware from Products.CMFCore.CMFCatalogAware import WorkflowAware from OFS.role import RoleManager +from AccessControl import ClassSecurityInfo +from Products.CMFCore import permissions COMMENT_TITLE = _( @@ -186,6 +188,7 @@ class Comment(CatalogAware, WorkflowAware, DynamicType, Traversable, """ return self.creator + security.declareProtected(permissions.View, 'Type') def Type(self): """The Discussion Item content type. """