checks.js
function(request, response, next){
		if (!utils.Misc.isNullOrUndefined(request.user)) {
			next();
		}
		else {
			var error = new Error(errors['213']);
			response.end(utils.Misc.createResponse(null, error, 213));
		}
	}
function(request, response, next){
		if (!utils.Misc.isNullOrUndefined(request.user)) {
			next();
		}
		else {
			var error = new Error(errors['213']);
			response.end(utils.Misc.createResponse(null, error, 213));
		}
	}
function ( request , response , next ) { if ( ! utils . Misc . isNullOrUndefined ( request . user ) ) { next ( ) ; } else { var error = new Error ( errors [ '213' ] ) ; response . end ( utils . Misc . createResponse ( null , error , 213 ) ) ; } }
checks for logged-in user
checks for logged - in user