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.