stormpath-restify
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -100,2 +100,4 @@ var Promise = require("bluebird"); | ||
opts.inGroup = typeof opts.inGroup === 'string' ? [opts.inGroup] : opts.inGroup; | ||
return function groupFilter(req,res,next){ | ||
@@ -107,3 +109,3 @@ req.account.getGroups(function(err,collection){ | ||
collection.detect(function(group,cb){ | ||
cb(opts.inGroup === group.name); | ||
cb(opts.inGroup.indexOf(group.name) >= 0); | ||
},function(result){ | ||
@@ -110,0 +112,0 @@ if(result){ |
{ | ||
"name": "stormpath-restify", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "description": "Implement OAuth2 Client Credentials Flow for server and client - using Stormpath", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25658
533