paperhub/mongoose-authorize — pull request #1 by andrenarchy (2014-12-05 15:56:28+00:00)
Title: Permissions

Adds `permissionsPlugin` with 2 functions:
* `getPermissions(callback)`: returns an array with all permissions
* `hasPermissions(userId, action, target, callback)`: returns true iff the specified userId has the permission to execute the specified action on th specified target.