Skip to content

Commit

Permalink
acl/middleware: clean-up extract logger issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nemtsov committed Aug 23, 2015
1 parent 6b9daea commit c566349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/acl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit c566349

Please sign in to comment.