Commit 95cb54a3 authored by 's avatar

Change to allow you to discern whether an Unauthorized actually occurred

when _verifyObjectPaste fails. Needed for correct DAV support.
parent a4b16a96
......@@ -83,7 +83,7 @@
#
##############################################################################
__doc__="""Copy interface"""
__version__='$Revision: 1.58 $'[11:-2]
__version__='$Revision: 1.59 $'[11:-2]
import sys, string, Globals, Moniker, tempfile, ExtensionClass
from marshal import loads, dumps
......@@ -398,6 +398,7 @@ class CopyContainer(ExtensionClass.Base):
except: parent=None
if getSecurityManager().validate(None, parent, None, object):
return
raise 'Unauthorized', method_name
raise CopyError, MessageDialog(
title='Not Supported',
......
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