connect-roles
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -67,4 +67,8 @@ var functionList = []; | ||
vote = fn.call(req, req.user, action, stopNow); | ||
if(vote === false) return false; | ||
else if (vote === true) result = true; | ||
if(vote === false){ | ||
stop = true; | ||
result = false; | ||
} else if (vote === true){ | ||
result = true; | ||
} | ||
} | ||
@@ -71,0 +75,0 @@ if(module.exports.log) console.log('Check Permission: ' + (req.user.id||req.user.name||"user") + ".can('" + action + "'') -> " + (result === true)); |
{ | ||
"name": "connect-roles", | ||
"description": "Provides dynamic roles based authentication for node.js connect and express servers.", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"homepage": "http://documentup.com/Tuskan360/connect-roles", | ||
@@ -6,0 +6,0 @@ "repository": { |
13373
175