Skip to content

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

@JeffersonBledsoe

Description

@JeffersonBledsoe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions