FolderFilter Breaks with Non-Manager?
Evan -- I'm testing FolderFilter for a production site. It works fine when I log in as a Manager, but when I log in with a highly-privileged, non-Manager account ("Client" role), I don't see folder content listings -- instead I see teh rendered content. The Client role has *all* privileges, so it shouldn't be a permission problem per se, and this happens on a clean install of Zope2.5.1, so it's not an incompatibility with a local product. If I trim your __init.py__ file down and comment out the filtering stuff, I still can't get Folder views -- as long as the Folder.manage_main= DTMLFile() line is there, this bug happens. Any advice on where to start looking for this bug? Or any workarounds? Thanks! - J.
Joel Burton wrote:
I'm testing FolderFilter for a production site. It works fine when I log in as a Manager, but when I log in with a highly-privileged, non-Manager account ("Client" role), I don't see folder content listings -- instead I see teh rendered content.
Argh. This is one of the perils of monkey-patching. Change the first two lines of __init__.py's initialize() to this: def initialize(context): from OFS.ObjectManager import ObjectManager ObjectManager.manage_main = DTMLFile('www/main', globals()) Cheers, Evan @ 4-am
participants (2)
-
Evan Simpson -
joel@joelburton.com