Commit 5adf91e1 authored by Jérome Perrin's avatar Jérome Perrin

fix NameErrors


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34480 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8949b36b
......@@ -1532,9 +1532,9 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
# handle validate_src
if validate_src:
if not sm.validate(None, parent, None, object):
raise AccessControl_Unauthorized, object_id
raise AccessControl_Unauthorized, object.getId()
if validate_src > 1:
if not sm.checkPermission(DeleteObjects, parent):
if not sm.checkPermission(Permissions.DeleteObjects, parent):
raise AccessControl_Unauthorized
# so far, everything OK
return
......
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