sails-permissions
Advanced tools
Comparing version 1.1.0 to 1.1.2
@@ -11,2 +11,4 @@ var permissionPolicies = [ | ||
return { | ||
identity: 'permissions', | ||
/** | ||
@@ -23,2 +25,4 @@ * Local cache of Model name -> id mappings to avoid excessive database lookups. | ||
initialize: function (next) { | ||
sails.log.info('permissions: initializing sails-permissions hook'); | ||
if (!validatePolicyConfig(sails)) { | ||
@@ -32,3 +36,3 @@ sails.log.error('One or more required policies are missing.'); | ||
sails.once(sails.config.permissions.afterEvent, function () { | ||
sails.after(sails.config.permissions.afterEvent, function () { | ||
Model.count() | ||
@@ -38,3 +42,7 @@ .then(function (count) { | ||
initializeFixtures(sails).then(next); | ||
return initializeFixtures(sails) | ||
.then(function () { | ||
sails.emit('hook:permissions:loaded'); | ||
next(); | ||
}); | ||
}) | ||
@@ -41,0 +49,0 @@ .catch(function (error) { |
{ | ||
"name": "sails-permissions", | ||
"version": "1.1.0", | ||
"version": "1.1.2", | ||
"description": "Comprehensive user permissions and entitlements system for sails.js and Waterline. Supports user authentication with passport.js, role-based permissioning, object ownership, and row-level security.", | ||
@@ -55,5 +55,3 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"sails-auth": "*", | ||
"lodash": ">2.4.0", | ||
"sails": ">0.10.0" | ||
"lodash": ">2.4.0" | ||
}, | ||
@@ -60,0 +58,0 @@ "engines": { |
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
87087
6
2274