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

Unclear exception thrown when a user doesn't have access to the collection but the collectionfilter is displayed #153

Open
JeffersonBledsoe opened this issue Feb 7, 2022 · 0 comments

Comments

@JeffersonBledsoe
Copy link
Member

If a user does not have the correct permissions to view the collection but the filter is displayed, the collectionish variable in the following code is None and so throws an exception:

collectionish = (
ICollectionish(self.collection.getObject()) if self.collection else None
)
selector = collectionish.content_selector

AccessControl.Unauthorized is likely to be a more suitable exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant