OptimalBits / node_acl

Access control lists for node applications
2.62k stars 369 forks source link

exception from pattern #183

Open algebris opened 8 years ago

algebris commented 8 years ago

Hi! I would like to build something like

{
            roles: 'anonymous',
            allows: [
                { resources: ['articles'], permissions: 'view' },
                { resources: ['articles/:id'], permissions: 'view' },
                { resources: ['articles/123'], permissions: 'update' }
            ]
}

Is it possible to add exception for article with id=123 to UPDATE it? And other articles still matches only VIEW.

2) is it possible to add permission like allow(userId, resource, permissions)?

Thnx