 	
 isAccessible = (username, testPackage, testVersion) ->
 	return true if auth is null
+	
+	# check general packages
 	if auth.packages?
 		for _package, version of auth.packages
 			_package = _package.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1").replace(/\\\*/, '.*')
 			if RegExp("^#{_package}$", 'i').test testPackage
 				return true if version testVersion
+	
+	# check user
 	if auth.users?[username]?.packages?
 		for _package, version of auth.users[username].packages
 			_package = _package.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1").replace(/\\\*/, '.*')
 			if RegExp("^#{_package}$", 'i').test testPackage
 				return true if version testVersion
+		# check user groups
 		for group in auth.users[username].groups
 			if auth.groups?[group]?
 				for _package, version of auth.groups[group]

				latest = packageFolder + '/latest'
				logger.log "debug", "Parsing #{latest}"
				currentPackage = { }
				parsingFinished = ->
					newPackageList[currentPackage.name] = currentPackage
					fileCallback null

					writer.writeAttribute 'url', result[2] if result[2]?
					writer.text result[1]
					do writer.endElement
					
				do writer.endElement
			do writer.endElement
			do writer.endElement
