plone / guillotina

Python AsyncIO data API to manage billions of resources
https://guillotina.readthedocs.io/en/latest/
Other
187 stars 51 forks source link

return 401 if NoPermissionToAdd is raised in defaultPOST #1119

Closed nilbacardit26 closed 3 years ago

nilbacardit26 commented 3 years ago

Currently, I am getting 500 when NoPermissionToAdd is raised in the defaultPOST method when create_content_in_container is called. This happens when I am configuring a contentype with a custom add_permission. Raise HTTPUnauthorized instead