6

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?

Dmitry Demidenko
  • 3,427
  • 1
  • 22
  • 22

3 Answers3

7

There is plugin for Racer - racer-access

Use it like this:

var racerAccess = require('racer-access');
derby.use(racerAccess);
store.allow('change', 'users', function (some usefull arguments) {
    return true || false;
});
Vladimir Makhaev
  • 1,104
  • 2
  • 10
  • 23
2

At now racer-access is deprecated. You can use share-access.

KNOFF
  • 441
  • 4
  • 4
0

It seems share-access is now deprecated in favor of sharedb-access.

Here's a related discussion on the Derby mailing list "racer-access deprecated".

curran
  • 1,261
  • 13
  • 8