node ACL use mongodb
Install
npm install seetook-acl --save-dev
API
$3
the first argument is userMark name or id,
the second argument is role name,
the third is a callback with a argument of error
function callback(err){
}
$3
- String role name
- Array resources name like:["blog","comment"]
- Array like:["get","delete"]
- callback(err)
$3
- String userMark
- String resource name
- Array[Actions:String]
- callback(err)
$3
$3
$3
$3