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

allow_upload not possible for restricted users #4055

Open
gogobd opened this issue Nov 11, 2024 · 0 comments
Open

allow_upload not possible for restricted users #4055

gogobd opened this issue Nov 11, 2024 · 0 comments

Comments

@gogobd
Copy link

gogobd commented Nov 11, 2024

When a user has no (View, Access Contents Information) permission between the Plone root and another folder whre they do have permissions @@allow_upload fails (allow_upload is being called on the Site root)

Example:

/a/b/c

User has no access on b but is allowed in c, /@@allow_upload gets a 302.

What actually happened:

302 Errors visible in "Network" in Developer Tools (xhr)

What version of Plone/ Addons I am using:

Plone 6.0.11 and newer, plone.app.content 4.1.2

Possible reason

In plone.app.content 4.1.2 (and 4.1.8 i.e. master) we use restricted traverse, and it's unclear why - using unrestricted traverse might just fix this issue.

https://github.com/plone/plone.app.content/blob/0eca90492d3e942fe84813861b6fb273fe405899/plone/app/content/browser/file.py#L193

@plone plone deleted a comment from Vatsal212005 Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant