[Product-Developers] Weird permission issue with invokeFactory()

Andreas Jung lists at zopyx.com
Fri Sep 2 10:35:01 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

Plone 4.x...

I have code calling

folder.invokeFactory(some_type, id=some_id, title=.., other_attr=...)

This code works for a user with Manager role but fails for a user with
local roles Editor, Contributor (on the folder).

The underlaying edit() call seems to require the Manager role.

This is intentional?

The workaround is to call the mutators of the generated object myself...
working but not nice.

Andreas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJOYLFUAAoJEADcfz7u4AZjsUoLv3ZAc+4k8KSJ2KjkKE1/iMS4
tiJR3seciNE1jiSqYUyLSUwrX09XrjudpNeCBC7GSdp0dTR+2DE61XpHKz8i77RI
N4GWsUzlclFveUQRvwzu1W0UGbkTTP2YXdaYGole/an0u0AP9Euz9ZGkXJVvW7Em
L58CoUfh4lenL1ZTTPEQOKcewWpk95e/lHelaD+sM2nv67SvkETtqUFnZ+zRIHh/
/kic+qIbxaVuf+wr+zfqbAPoEY8v+s36b6+m1pUU+ALnaz+FqPA7f0FP3u25pJO0
PYrmCOVv1IVcuGzyujs0DyBR3p0saeIG4FKSyan7XeisvprSEiWibImB/L9fQb+w
IOha192lpSugkZH7tGy6g1+HE0EvhHRXWHiZBMWU8JX2Odjc1PruyBxGohq4BKn9
40Oy7EbRzGVpqSyUK5f/xj16udKF/SqXloqh7fl+X7dUuoMKFQ3wIZVR8Md6aayl
7xtJGOgXtm85mCRq6YWAKA7fjDRPlQk=
=aAiA
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 310 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20110902/4725d266/attachment.vcf>


More information about the Product-Developers mailing list