Closed folix-01 closed 1 year ago
Please give the specific steps to reproduce the problem
@davisagli
Just try to sign any field using this techique https://github.com/plone/plone.autoform#:~:text=class%20IMySchema(model.Schema)%3A%0A%20%20%20%20form.read_permission(secret%3D%27cmf.ManagePortal%27)%0A%20%20%20%20form.write_permission(secret%3D%27cmf.ManagePortal%27). And try to test if it is visible via RESTApi of plone
Which endpoint? What roles does the user have that you are accessing the API with?
@davisagli I just tried it on the content get endpoint, using the site administrator
and member
users.
plone.autoform.directives.read_permission directives seem to not work with restapi(the field is never shown if use this directive)