Coder Social home page Coder Social logo

Comments (6)

dottodot avatar dottodot commented on August 15, 2024

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.

tomhallam avatar tomhallam commented on August 15, 2024

+1 on this - even basic documentation would be really handy

from sails-permissions.

tjwebb avatar tjwebb commented on August 15, 2024

I recently did an overhaul of sails-permissions. I'll be adding docs shortly, sorry for the wait

from sails-permissions.

tjwebb avatar tjwebb commented on August 15, 2024

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.

tomhallam avatar tomhallam commented on August 15, 2024

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.

tjwebb avatar tjwebb commented on August 15, 2024

Yes the permissions are automatically enforced for all REST requests by the policies that are included.

from sails-permissions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.