문제

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?

도움이 되었습니까?

해결책

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;
});

다른 팁

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

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".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top