Hey everyone,<br><br>Zope 2.9.6<br><br>I&#39;m trying to filter the objects that appear in the Add drop down, and I&#39;m having odd results.&nbsp; There are two scenarios.<br><br>In the first scenario, the active user is a Manager and my folderish object does not have a defined all_meta_types function.&nbsp; Everything shows up in the Add drop down as expected.&nbsp; When I define all_meta_types for my folderish object to only return one kind of object, the &quot;Add xxxxx&quot; button appears as one would expect.
<br><br>In the second scenario, I have a role &quot;Editor&quot; which controls what kinds of objects the user can add.&nbsp; When I do not have an all_meta_types function defined on my folderish object, only those objects that the role permits the user to add are shown.&nbsp; When I define all_meta_types for my folderish object to only return one of the kinds of objects that the role does permit, the user can&#39;t add anything.&nbsp; No &quot;Add xxxxx&quot; button that one would normally see when only able to add a single type of object to a folderish object.
<br><br>For the same type of object, and when logged in as an &quot;Editor&quot;, the call to user.has_permission() (around line 254) in filtered_meta_types() in ObjectManager.py, returns false when all_meta_types is defined, and returns true when it isn&#39;t.&nbsp; I don&#39;t know why the user would not have permission to add this type of object when all_meta_types is defined versus when it isn&#39;t.&nbsp; This is why I&#39;m confused.
<br><br>No errors or exceptions.<br><br>So, in summary, when I don&#39;t have all_meta_types defined for my folderish object, the five types of objects the role is permitted to add is shown in the Add drop down.&nbsp; When I set all_meta_types to only permit one of those five types of objects to be added, the user can&#39;t add anything.&nbsp; A user with the Manager role doesn&#39;t appear to have this problem.
<br><br>Any suggestions for what&#39;s going on here?&nbsp; Any insights are appreciated!<br><br>Thank you,<br>Garth<br>