diff src/backend.py @ 392:3fb2ff438f09

backed: allow admins to overwritte any item
author Goffi <goffi@goffi.org>
date Fri, 15 Feb 2019 18:05:31 +0100
parents 66128656f76c
children dc83b1d837cf
line wrap: on
line diff
--- a/src/backend.py	Fri Feb 15 18:05:02 2019 +0100
+++ b/src/backend.py	Fri Feb 15 18:05:31 2019 +0100
@@ -415,7 +415,7 @@
 
         if persistItems:
 
-            if check_overwrite and affiliation != 'owner':
+            if check_overwrite and affiliation != 'owner' and not self.isAdmin(requestor):
                 # we don't want a publisher to overwrite the item
                 # of an other publisher
                 yield self._checkOverwrite(node, [item['id'] for item in items if item.getAttribute('id')], requestor)