Comments (6)
Have you managed to get anywhere with the documentation? Keen to have a play with this but struggling to work out how best to use it, and how it all links together.
from sails-permissions.
+1 on this - even basic documentation would be really handy
from sails-permissions.
I recently did an overhaul of sails-permissions. I'll be adding docs shortly, sorry for the wait
from sails-permissions.
I updated the README and added quite a bit of info in the wiki: https://github.com/tjwebb/sails-permissions/wiki
Hope that helps; let me know if you have any other questions
from sails-permissions.
Thanks a lot for your input here, really impressed that you got some documentation out so quickly.
I'm still a little bit unsure as to how to apply this to my controller methods - are they automatically applied depending on the permission created?
Also - I've noticed a bug, will open a seperate ticket. Seems like when you add a new model, it tries to recreate the older model's ... models! So I'm getting duplicate key entries in my MongoDB database. See #19
Perhaps using findOrCreate in your loop would solve the problem?
Thanks a lot for your help so far
~T
from sails-permissions.
Yes the permissions are automatically enforced for all REST requests by the policies that are included.
from sails-permissions.
Related Issues (20)
- langa.ioβs server DNS address could not be found.
- RolePolicy Cannot set property 'owner' of undefined HOT 6
- Broken limit, skip and populate find blueprint HOT 1
- Unable to signup unless logged in with Admin account HOT 4
- JWT Support? HOT 13
- Installation HOT 2
- Examples source coded needs to be added HOT 1
- Transfer sails npm user to sails.
- Project Status HOT 3
- read permissions blacklist not working HOT 1
- "Remember Me" functionality HOT 2
- PermissionService relation owner fatal error
- ReferenceError: sails is not defined HOT 2
- Mysql DB connection error HOT 1
- populate()- populating tables permission issue
- Error with Model Name is Account HOT 1
- PermissionService Error HOT 1
- PermissionService.findTargetObjects returns all objects
- Ownership access control for action 'read' not works and package still active?
- TODO remove enum and support permissions based on all controller
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sails-permissions.