Re: plone.app.collection displaying inactive objects for anonymous users
ichimdav <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
I started working on adding this feature within a branch for plone.app.querystring here https://github.com/eea/plone.app.querystring/tree/show_inactive Instead of adding a boolean that modified the inactive objects flag only for anonymous I decided to implement in a way that you could select which roles from the site would get this flag set to true. However I was really surprised that I had to add a new vocabulary which basically inherits the roles vocabulary from plone.app.vocabulary and adds the Anonymous role as well since the Roles vocabulary does not contain the Anonymous role. I see that getPortalRoles is coming from Products.CMFCore.MembershipTool, and there it adds the Manager and Owner roles. I assume that the adding Anonymous here would also add it to anywhere else this method would be called, however I expect that this would not be something desired. I have a feeling that just adding the vocabulary here would solve only my own issue but this might need to be treated within the entire stack. David Glick, do you have any advice and how to go about this? Or does anybody know what was the decision against not having the Anonymous role returned when calling getPortalRoles? -- View this message in context: http://plone.293351.n2.nabble.com/plone-app-collection-displaying-inactive-objects-for-anonymous-users-tp7570118p7570273.html Sent from the Core Developers mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk