[Product-Developers] How to modify a security setting for default Plone page

Manabu TERADA terapyon at gmail.com
Tue May 27 03:18:00 UTC 2014

I could change the permission.


I found a reference code.


2014-05-26 11:00 GMT+09:00 Manabu TERADA <terapyon at gmail.com>:
> I want to modify a security setting for default Plone page content
> type by monkey patch on Plone4.3.2, but I could not be overrode it.
> Please let me know how to modify.
> My code:
> from AccessControl.security import _getSecurity
> from AccessControl.class_init import InitializeClass
> from Products.CMFCore import permissions
> security = _getSecurity(BaseFolderMixin)
> security.declareProtected(permissions.View, 'manage_delObjects')
> InitializeClass(BaseFolderMixin)

More information about the Product-Developers mailing list