add permissions to type, fixes #11497
This commit is contained in:
parent
c6af5ee670
commit
1c25c5c10a
@ -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.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user