Commit 25b7cdd1 authored by Ivan Tyagov's avatar Ivan Tyagov

setUniqueReference has been removed in r19327.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30972 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 49a9b13e
...@@ -919,7 +919,6 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, CachedConvertableMixin, S ...@@ -919,7 +919,6 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, CachedConvertableMixin, S
if existing_document.getPortalType() != self.getPortalType(): if existing_document.getPortalType() != self.getPortalType():
raise ValueError, "[DMS] Ingestion may not change the type of an existing document" raise ValueError, "[DMS] Ingestion may not change the type of an existing document"
elif not _checkPermission(Permissions.ModifyPortalContent, existing_document): elif not _checkPermission(Permissions.ModifyPortalContent, existing_document):
self.setUniqueReference(suffix='unauthorized')
raise Unauthorized, "[DMS] You are not allowed to update the existing document which has the same coordinates (id %s)" % existing_document.getId() raise Unauthorized, "[DMS] You are not allowed to update the existing document which has the same coordinates (id %s)" % existing_document.getId()
else: else:
update_kw = {} update_kw = {}
......
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