Commit f6e8654e authored by Aurel's avatar Aurel

when add trash folder, do not check allowed content type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13879 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 266903f8
......@@ -65,7 +65,8 @@ class TrashTool(BaseTool):
if 'portal' in path:
path += '_items'
if path not in backup_object_container.objectIds():
backup_object_container = backup_object_container.newContent(portal_type='Trash Folder', id=path, is_indexable=0)
backup_object_container = backup_object_container.newContent(portal_type='Trash Folder', id=path,
is_indexable=0, check_allowed=0)
backup_object_container.edit(isHidden=1)
else:
backup_object_container = backup_object_container._getOb(path)
......
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