New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

connect-roles

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-roles - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

8

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc