Closed Ziink closed 11 years ago
App uses mongoDB which has a collection 'ziink' with a few documents.
In server/index.js store.query.expose('ziink', 'test', function(id) { return {name: 'ziink'}; }); store.accessControl = true; store.queryAccess('ziink', 'test', function (id, accept) { accept(false); });
In app/index.js
ready(function(model) { window.model = model; });
In browser
model.query('ziink').fetch(function(err, users){console.log(users.get())})
This fetches all documents.
Derby should not allow any access to data that is not explicitly allowed when accessControl is true.
No longer relevant in 0.5
App uses mongoDB which has a collection 'ziink' with a few documents.
In app/index.js
In browser
This fetches all documents.
Derby should not allow any access to data that is not explicitly allowed when accessControl is true.