Skip to content

Types endpoint should not block Anonymous if they have view access #2054

Description

@ericof

The @types endpoint is registered with the zope2.View permission, but inside its reply method it checks whether the user is anonymous and blocks them.

We could instead implement logic like:

  • If the context portal_type and the traversal path are the same, return the schema; otherwise, raise Unauthorized.

Blocking access to Anonymous breaks the Default view in volto, as documented in plone/volto#8426

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions