by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Zlatko Fedor
    @seeden
    Hi
    Bibek Subedi
    @Bibeknam
    Hello
    I have problem when I use rbac.getRole, please help me
    Role constructor has 3 arguments but from moongose.js (line 44), it is called with 2 arguments <code>new Role(rbac, record.name);</code>
    Zlatko Fedor
    @seeden
    Hi, It is fixed now. I rewrote rbac to es6 and refactored a lot of code. I added new 20 tests. Please use a latest version 3.0.0
    Bibek Subedi
    @Bibeknam
    Does it work with mongoose now?
    Bibek Subedi
    @Bibeknam
    I think it is not working with mongoose. I need to store the roles and permissions in db.
    Zlatko Fedor
    @seeden
    Yep you are right. I will try to fix mongoose storage soon
    Bibek Subedi
    @Bibeknam
    (y)
    Bibek Subedi
    @Bibeknam

    Now its working. But I have an issue if I want to use existing db. Here is my code

    var db = mongoose.connect(config.db, function(err) {
                if (err) {
                    // 
                }
                var storage = new RBAC.Storage.Mongoose({
                             connection: db.connection
                     });
    
                     var rbac = new RBAC(storage);
    });

    If I use this rbac to create roles and permissions as

    rbac.create(roles, permissionsAsObject, function(err, data) {
            if(err) {
                throw err;
            }
    
        });

    It throws exception.
    Note: In your test, you have created new db.

    Zlatko Fedor
    @seeden
    Mongoose storage is not ready. It has multiple errors. You need to wait for next release
    Bibek Subedi
    @Bibeknam
    Also some tests have failed in your mongoose test
    Bibek Subedi
    @Bibeknam
    ok please notify me if you are done with Mongoose :)
    Zlatko Fedor
    @seeden
    Mongoose version is fixed
    GENDT S├ębastien
    @SebastienGendt_twitter
    Hi, Foremost thank you for your work, i would save my permissions, roles and grants in DB storage. i haven't seen on your documentaions the method to do that. Can you explain me how can i do? Thank you in advance
    GENDT S├ębastien
    @SebastienGendt_twitter
    it's done
    Jignesh R Chaudhari
    @jignesh248

    Hi, I am trying to figure out my way around the library, is it ready for Dynamoose?

    I have my project with Dynamoose, which is kind of buggy as of now. Now I need to integrate RBAC but am not able to figure with just documentation. Are there any examples or blogpost giving a full blown example? Any type of help will be appreciated.

    jaideepdasviadynamics
    @jaideepdasviadynamics
    @seeden hi could you please tell me how to define the hierarchy