             else
                 dialog.find("a[href=#delete-file]").hide()
 
-            if ENABLE_PUBLIC and not @public_access and not (obj.fullname == '.snapshots' or misc.startswith(obj.fullname,'.snapshots/'))
+            if not @public_access and not (obj.fullname == '.snapshots' or misc.startswith(obj.fullname,'.snapshots/'))
                 @is_path_published
                     path : obj.fullname
                     cb   : (err, pub) =>

# Project page -- browse the files in a project, etc.
#
###############################################################################
ENABLE_PUBLIC = true


{IS_MOBILE}     = require("feature")
{top_navbar}    = require('top_navbar')

            if ext in BANNED_FILE_TYPES
                alert_message(type:"error", message:"Creation of #{ext} files not supported.", timeout:3)
                return false

            if ext == 'tex'
                for bad_char in BAD_LATEX_FILENAME_CHARACTERS
                    if p.indexOf(bad_char) != -1
                        bootbox.alert("Filenames must not contain the character '#{bad_char}'.")
                        return false

            if p.length == 0
                @new_file_tab_input.focus()
