sails-permissions icon indicating copy to clipboard operation
sails-permissions copied to clipboard

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.

Results 97 sails-permissions issues
Sort by recently updated
recently updated
newest added

Thanks for this awesome work! Is there any possibility to use JWT Token instead of Cookies?

My fix was to change .sailsrc to: ``` { "generators": { "modules": { "permissions-api": "node_modules/sails-permissions/generator" } } } ```

how do i remove enum for "TODO remove enum and support permissions based on all controller", after i save no change. is there anything i should do? thank you

This package still active? By my test, ``` PermissionService.grant({role:'registered', model:'sth', action:'update', relation:'role'}) PermissionService.grant({role:'registered', model:'sth', action:'update', relation:'owner'}) ``` Then, 'put /sth/:id' can only be accessed by the user who owns the...

Hi! I really need the populate option set to true. Why has it been set to false globally? Can I override that without any trouble? I guess not...

question

This happens only in case of GET /model/id/association. Related issues: #5

``` error: TypeError: Cannot set property 'owner' of undefined at module.exports (/node_modules/sails-permissions/dist/api/policies/RolePolicy.js:43:34) ``` This doesn't seem to work ``` if (!_lodash2['default'].contains(['update', 'delete'], action) && req.options.modelDefinition.attributes.owner) { // Some parsing must...

Hello I have a method "preferences" on my `UserController`, which actually only works against my `Preferences` model: ``` preferences: function(req, res) { Preferences.findOrCreate({user: req.session.userInfo.id}).then(function(preferences){ if(!preferences) return res.serverError("error getting preferences"); return...

Hi guys, I have existing project, it have model Account instead User model and my validate login with session not using sails-auth, when I integrate it with my project, it...