Dmitry Demidenko Dmitry Demidenko - 1 year ago 102
Node.js Question

Derby.js (Racer) access control

I'm new in Derby.js environment, and as far as I see Racer is exposing all the data on client side.

So, basically anybody could manipulate any data stored on server?
Am I correct? Is there any way to manage access control?

Answer Source

There is plugin for Racer - racer-access

Use it like this:

var racerAccess = require('racer-access');
store.allow('change', 'users', function (some usefull arguments) {
    return true || false;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download