Fix issue #546 - disable publish on offline/guest
Merge pull request #549 from alicoding/issue546

Fix issue #546 - disable publish on offline/guest