From c5663496f0d1aa7bc569d336a900ab1d207500f5 Mon Sep 17 00:00:00 2001 From: Yuriy Nemtsov Date: Sun, 23 Aug 2015 13:04:10 -0400 Subject: [PATCH] acl/middleware: clean-up extract logger issue --- lib/acl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/acl.js b/lib/acl.js index 15257e5..0cee404 100644 --- a/lib/acl.js +++ b/lib/acl.js @@ -641,9 +641,9 @@ Acl.prototype.middleware = function(numPathComponents, userId, actions){ next(new Error('Error checking permissions to access resource')); }else if(allowed === false){ if (acl.logger) { - acl.logger.debug('Not allowed '+_actions+' on '+resource+' by user '+_userId):null; + acl.logger.debug('Not allowed '+_actions+' on '+resource+' by user '+_userId); acl.allowedPermissions(_userId, resource, function(err, obj){ - acl.logger.debug('Allowed permissions: '+util.inspect(obj)):null; + acl.logger.debug('Allowed permissions: '+util.inspect(obj)); }); } next(new HttpError(403,'Insufficient permissions to access resource'));