Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed #11

  • Loading branch information...
commit c5753c840ef8bfa3e085b4b557041388cece8fe4 1 parent 4d769bc
@manast manast authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/acl.js
  2. +1 −1  lib/memory-backend.js
View
2  lib/acl.js
@@ -674,7 +674,7 @@ Acl.prototype._checkPermissions = function(roles, resource, permissions, cb){
self.backend.union('parents', roles, function(err, parents){
if(err){
cb(err);
- } else if(parents.length){
+ } else if(parents && parents.length){
self._checkPermissions(parents, resource, permissions, cb);
}else{
cb(err, false);
View
2  lib/memory-backend.js
@@ -75,7 +75,7 @@ MemoryBackend.prototype = {
}
cb(undefined, _.union(keyArrays));
}else{
- cb();
+ cb(undefined, []);
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.