[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


Self-less.
I could change the permission.

https://bitbucket.org/cmscom/c2.patch.corepermission/src/0ef9553b5176b835a617ec1daf7492cd23a37fc1/c2/patch/corepermission/delete.py?at=default


I found a reference code.
https://github.com/4teamwork/opengever.core/blob/master/opengever/base/monkeypatch.py

Thanks.

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