Fix issue #546 - disable publish on offline/guest

closes #546