add permissions to type, fixes #11497

This commit is contained in:
maartenkling 2012-11-13 09:40:32 +01:00
parent c6af5ee670
commit 1c25c5c10a
1 changed files with 3 additions and 0 deletions

View File

@ -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.
"""