Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sails-permissions

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-permissions - npm Package Compare versions

Comparing version 1.1.0 to 1.1.2

12

api/hooks/sails-permissions.js

@@ -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) {

6

package.json
{
"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": {

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