# HG changeset patch # User Goffi # Date 1550250331 -3600 # Node ID 3fb2ff438f093830fdf1c80969e4ae9aa5711963 # Parent 1d2222a91e6b8cfcb0edefe9704a25227dbb16a8 backed: allow admins to overwritte any item diff -r 1d2222a91e6b -r 3fb2ff438f09 src/backend.py --- 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)