A plugin for hapi using the relations ACL.
See relations for supported clients and ACL structure.
Pass in your relations schema and choosen client as options.
var Hapi = ;var redis = ;var fs = ;var client = redis;var server = ;var schema = JSON;server;
Or optionally pass the client in as a server plugin
And access realtions from the plugins
schema expects a loaded schema file, which will be added to relations. A context defines an application in which the user's privileges will be evaulated. For instance, if the context is
inventory, then the roles and actions listed within the context correspond to a user's ability to use or add to
The context consists of roles, and which actions they are allowed to perform. Please see the
test/permission.json for an example.
grunt lint to check yo-self