Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 576 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 576 Bytes

baucis-access

Build Status

Plugin for Baucis to configure read/write access on per-attribute level.

Installation

npm install baucis-access

Testing

npm test

Sample usage

var controller = baucis.rest('vegetable');

controller.access({
    authenticated: {
        create: true,
        read: "name score"
    },
    owner: {
        write: "name species score",
        read: true,
        drop: false
    }
});