Re: Why is manage_pasteObjects protected with "Modify portal content"?
Lukas Graf <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On Dec 9, 2013, at 8:28 PM, Sean Upton wrote: > The subject-line is self-explanatory: > > https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/Portal.py#L46 > > https://github.com/plone/Products.Archetypes/blob/master/Products/Archetypes/BaseFolder.py#L42 > > https://github.com/plone/plone.dexterity/blob/master/plone/dexterity/content.py#L580 > > Ideally, this really should be 'Add portal content' -- so that folks > who have permission to view the content in source, and add content to > target can paste? > > [...] > > Is this a simple long-standing mistake that could eventually be > corrected? Am I missing something? If not, should I PLIP changing > this for Plone 5? This is indeed a very old bug - see https://dev.plone.org/ticket/9177 While the work-arounds mentioned in that ticket work for Archetypes, for Dexterity it's even worse: At the time I encountered this, I couldn't find a way to get Dexterity Containers to use AddPortalContent for manage_pasteObjects other than monkey patching __ac_permissions__ directly like this: https://gist.github.com/lukasgraf/7880348 I would love to see this PLIPped for Plone 5. Lukas > Sean > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Plone-developers mailing list > Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/plone-developers -- 4teamwork AG Lukas Graf Senior Developer Engehaldenstrasse 53 CH-3012 Bern Tel +41 31 511 04 22 Fax +41 31 305 90 25 lukas.graf-/8aE7x569Db/[email protected] www.4teamwork.ch Folgen Sie uns auf Twitter: @4teamwork ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers