Re: confusion due to acquired allowed types
Martin Aspeli <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Wichert Akkerman <wichert@...> writes: > what happens is that when building the list of addable types in > parent/child getLocallyAllowedTypes looks at the list of allowed types > in the parent folder. That folder allows all types, but our user is not > allowed to add anything so this returns an empty list. > > I'm not very familiar with that code, but it seems fixable by > refactoring it a bit so isConstructionAllowed for the fti is only called > in the folder where we want to add something instead of for the folder > where we are getting the type list from. +1 - This is a bug as far as I can tell. Have you got a unit test for it? Martin (blah blah blah, for the purposes of keepin GMANE's web interface nazi happy, blah blah, blah) ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642