changeset 392:3fb2ff438f09

backed: allow admins to overwritte any item
author Goffi <goffi@goffi.org>
date Fri, 15 Feb 2019 18:05:31 +0100 (2019-02-15)
parents 1d2222a91e6b
children 728b08c0d000
files src/backend.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)