Phone Dexterity check field permission
Bartl Ramon <ramon.bartl-gM/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I’m trying to integrate Dexterity support for plone.jsonapi.routes.
Since I directly manipulate the fields, I need to check the permissions
on each field programmatically.
With ATCT it was as simple as that::
if not field.checkPermission("write", self.context):
raise Unauthorized("You are not allowed to write the field %s" % name)
I would like to do something similar with the zope.schema fields for
Dexterity Content Types, but I have no clue how to do it:(
Need some help here please
Greets
-ramonski
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
signature.asc
(application/pgp-signature, 236 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iF4EAREKAAYFAlWeMVQACgkQW+yPiOIAg2qHtgEAjkIAzxQCaSROBEPzbfvIYmQo kq64WBTw+4NdO9GLKo8BAJExuixQPYZdZiQlZqRoITVXY5xLLpR/L8TDGyT8Kb+G =aWcN -----END PGP SIGNATURE-----