Fix issue #546 - disable publish on offline/guest