       else
         return true
 
-    if not @public
+    unless @public
       Router.route "#{@downloadRoute}/#{@collectionName}/:_id/:version/:name", ->
         self.findOne(@params._id).download.call(self, @, @params.version) if self.checkAccess @
       , {where: 'server'}


      dispositionName     = "filename=\"#{encodeURI(@currentFile.name)}\"; "
      dispositionEncoding = 'charset=utf-8'
      disposition         = dispositionType + dispositionName + dispositionEncoding
      cacheControl        = if (http.params.query.play and http.params.query.play == 'true') then 'public, must-revalidate, post-check=0, pre-check=0' else @cacheControl


      if http.request.headers.range
        partiral = true

      Router.route "#{@downloadRoute}/:file", ->
        if @params.file.indexOf('-') isnt -1
          version = @params.file.split('-')[0]
          self.download.call self, @, version
        else
          @response.writeHead 404
      , {where: 'server'}

    @methodNames =
