# HG changeset patch # User Goffi # Date 1550242590 -3600 # Node ID 1c13ba86a4213debfb15e500a55e54b49402ea04 # Parent 04e7dcc436cade256cf48fefcf4f5d804198043a backend: allow admins to retract any item diff -r 04e7dcc436ca -r 1c13ba86a421 src/backend.py --- a/src/backend.py Tue Feb 12 21:10:00 2019 +0100 +++ b/src/backend.py Fri Feb 15 15:56:30 2019 +0100 @@ -1096,7 +1096,10 @@ and raise error.Forbidden if it is not the case """ # TODO: the behaviour should be configurable (per node ?) - if any((requestor.userhostJID() != publisher.userhostJID() for publisher in publishers_map.itervalues())): + if (any((requestor.userhostJID() != publisher.userhostJID() + for publisher in publishers_map.itervalues())) + and not self.isAdmin(requestor) + ): raise error.Forbidden() if affiliation in ['owner', 'publisher']: