Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: @querystring shouldn't list userids #1824

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Update configure.zcml
askadityapandey authored Oct 10, 2024
commit 94011ba84c9e3d8dde268dcc312dcddd8ff4712a
37 changes: 8 additions & 29 deletions src/plone/restapi/services/querystring/configure.zcml
Original file line number Diff line number Diff line change
@@ -4,48 +4,27 @@
xmlns:plone="http://namespaces.plone.org/plone"
xmlns:zcml="http://namespaces.zope.org/zcml"
>

<!-- Editor endpoint -->
<plone:service
method="GET"
factory=".get.QuerystringEditorGet"
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
permission="cmf.ModifyPortalContent"
name="@querystring"
/>
<plone:service
method="GET"
factory=".get.QuerystringEditorGet"
for="Products.CMFCore.interfaces.IContentish"
permission="cmf.ModifyPortalContent"
name="@querystring"
/>

<!-- Public endpoint -->

<plone:service
method="GET"
factory=".get.QuerystringPublicGet"
factory=".get.QuerystringGet"
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
permission="zope2.View"
name="@querystring-public"
name="@querystring"
/>

<plone:service
method="GET"
factory=".get.QuerystringPublicGet"
factory=".get.QuerystringGet"
for="Products.CMFCore.interfaces.IContentish"
permission="zope2.View"
name="@querystring-public"
name="@querystring"
/>

<!-- Maintain caching for both endpoints -->
<cache:ruleset
for=".get.QuerystringEditorGet"
ruleset="plone.content.dynamic"
zcml:condition="have plone-app-caching-3"
/>
<cache:ruleset
for=".get.QuerystringPublicGet"
for=".get.QuerystringGet"
ruleset="plone.content.dynamic"
zcml:condition="have plone-app-caching-3"
/>

</configure>