Only show public if user is not logged in

Main code rev. 1934