cansecurity
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -95,3 +95,3 @@ /*jslint node:true, nomen:true */ | ||
// first check verb, then check route regexp match, then check params | ||
async.each(routes[req.method.toLowerCase()], function (entry, callback) { | ||
async.each(routes[req.method.toLowerCase()] || [], function (entry, callback) { | ||
var useRule = false, path = typeof(req.path) === "function" ? req.path() : req.path, | ||
@@ -98,0 +98,0 @@ checkCondition = function (condition, req, user, item) { |
{ | ||
"name": "cansecurity", | ||
"description": "cansecurity is your all-in-one security library for user authentication, authorization and management in node expressjs apps", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"url": "http://github.com/deitch/cansecurity", | ||
@@ -6,0 +6,0 @@ "author": "Avi Deitcher <avi@deitcher.net>", |
@@ -13,2 +13,5 @@ /*jslint node:true, nomen:true, unused:vars */ | ||
}); | ||
it('should allow non-declared method', function(done){ | ||
r.post("/foo").type('json').send({a:1}).expect(200,done); | ||
}); | ||
describe('user in condition', function(){ | ||
@@ -15,0 +18,0 @@ it('should deny if user is not logged in', function(done){ |
117533
2139