Commit 650bde1c authored by Jim Fulton's avatar Jim Fulton

Fixed bug in ZClass creation wizard, which used getattr rather than _getOb.

parent 34a0ee30
......@@ -163,9 +163,11 @@ def manage_addZClass(self, id, title='', baseclasses=[],
id+'_addForm',
'Add %ss' % meta_type
)
getattr(self,id).propertysheets.permissions.manage_edit(
selected=['Add %ss' % id])
getattr(self,id).manage_setPermissionMapping(
Z=self._getOb(id)
Z.propertysheets.permissions.manage_edit(
selected=['Add %ss' % id])
Z.manage_setPermissionMapping(
permission_names=['Create class instances'],
class_permissions=['Add %ss' % meta_type]
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment