Skip to content

mxm, IT's mad science

Sections
Personal tools
You are here: Home » Products » Open Source » mxm Workgroups for Plone » Unauthorized: You are not allowed to manage portlets
Downloads
You can download mxm products here.

Due to it's technical and international nature, this section is in english.

Max M Has a blog too.

og er glad for mad

 

Comment

Above in this comment thread: mxm Workgroups for Plone

Unauthorized: You are not allowed to manage portlets

Posted by Anonymous User at 2008-12-18 02:31 AM
environment: Zope 2.10.6-final, python 2.4.5, linux2, Plone-3.1.7 buildout

ATWorkgroup-3.0.0 svn

Only members with "Manager" role can add ATWorkgroup. Any non-Manager role returns the following error:

Exception Type
Unauthorized
Exception Value
You are not allowed to manage portlets

Any ideas on how to correct?

****************************
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.CMFPlone.FactoryTool, line 376, in __call__
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.CMFFormController.FSControllerPageTemplate, line 90, in __call__
Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in _call
Module Products.CMFFormController.ControllerBase, line 231, in getNext
Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__
Module Products.CMFFormController.Script, line 145, in __call__
Module Products.CMFCore.FSPythonScript, line 140, in __call__
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 196, in _exec
Module None, line 1, in content_edit
- <FSControllerPythonScript at /Plone/content_edit used for /Plone/Members/brittany/portal_factory/ATWorkgroup/atworkgroup.2008-12-17.4325532704>
- Line 1
Module Products.CMFCore.FSPythonScript, line 140, in __call__
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 196, in _exec
Module None, line 13, in content_edit_impl
- <FSPythonScript at /Plone/content_edit_impl used for /Plone/Members/brittany/portal_factory/ATWorkgroup/atworkgroup.2008-12-17.4325532704>
- Line 13
Module Products.Archetypes.BaseObject, line 669, in processForm
Module Products.ATWorkgroup.ATWorkgroup, line 130, in at_post_create_script
Module plone.app.portlets.utils, line 85, in convert_legacy_portlets
Module plone.app.portlets.checker, line 26, in __call__
Unauthorized: You are not allowed to manage portlets

RE: Unauthorized: You are not allowed to manage portlets

Posted by Anonymous User at 2009-01-02 04:03 PM
The issue is caused because adding a Workgroup adds a portlet, which Plone-3 permissions only allow the Manager role. This issue also causes a rendering error in the "Members's Workgroups" portlet.

The only workaround I've found, thus far, is as follows:
1) in the ZMI, go to the site root and click on the Security tab
2) Go to "Portlets: Manage portlets" and enable "Members" by checking the box
3) Save to update settings.

This workaround does not suffice for a production environment because it gives Members full access to managing Plone-3 portlets on any page.

Any thoughts on how to edit the code are appreciated.

Thanks... Jim