sails-permissions
Advanced tools
Comparing version 0.10.9 to 0.10.10
@@ -6,6 +6,13 @@ var _ = require('lodash'); | ||
configure: function () { | ||
if (!_.isObject(sails.config.permissions)) sails.config.permissions = { }; | ||
// setup some necessary globals | ||
global.Promise = require('bluebird'); | ||
global._ = require('lodash'); | ||
_.mixin(require('congruence')); | ||
}, | ||
initialize: function (next) { | ||
sails.after('hook:orm:loaded', function () { | ||
@@ -12,0 +19,0 @@ var models = _.filter(sails.controllers, function (controller, name) { |
@@ -7,3 +7,2 @@ /** | ||
sails.log('Installing admin User'); | ||
sails.log('model', model); | ||
@@ -10,0 +9,0 @@ if (_.isEmpty(sails.config.permissions.adminPassword)) { |
{ | ||
"name": "sails-permissions", | ||
"version": "0.10.9", | ||
"version": "0.10.10", | ||
"description": "Comprehensive sails.js user permission/privilege framework that allows granting and restricting access to models and attributes based on object ownership and relationships with other users and roles", | ||
@@ -38,2 +38,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"congruence": "^1.6.4", | ||
"lodash": "^2.4.1", | ||
@@ -40,0 +41,0 @@ "pluralize": "^1.0.1", |
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
35662
984
4
+ Addedcongruence@^1.6.4
+ Addedcongruence@1.6.11(transitive)
+ Addedfnv-plus@1.3.1(transitive)
+ Addedlodash@3.10.1(transitive)