Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Express Acl V1.0.4

Compare
Choose a tag to compare
@nyambati nyambati released this 16 Oct 12:27
· 62 commits to master since this release

Express ACL Constable V1.0.4

This is the 3rd official release of express-acl aka Constable v1.0.4. This release has been made to introduce new features and to improve the performance of this library. Some of the notable changes include:

Search Path #83

This approach provides with the configuration to access roles in deeply nested decoded object.

const req = {
    ...
    user: {
        name: 'Mr Constable',
        ...
        role: {
            name: 'user',
            id: 4
        }
    }
    ...

}


// You can access the above role as `user.role.name`

acl.config({
    searchPath: 'user.role.name'
})

Credits

Credits to this release goes to Yael Brodsky @ybrodsky.