public boolean canDelete(JID user) {
        return publisher.equals(user)
            || publisher.toBareJID().equals(user.toBareJID())
            || getNode().isAdmin(user);
    }
Returns true if the user that is trying to delete an item is allowed to delete it.
Only the publisher or node admins (i.e. owners and sysadmins) are allowed to delete items.

@param user the full JID of the user trying to delete the item.
@return true if the user that is trying to delete an item is allowed to delete it.
xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/PublishedItem.java