loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Replication: ACLs and individual models

Open mbuster opened this issue 11 years ago • 1 comments

Is it the case that the current replication mechanism attempts to replicate the entire model/table (all instances)? If so, how would one replicate only "owned" instances, or instances otherwise allowed by ACL? For example, a browser application might want to only replicate instances of a "Project" model which are owned (or otherwise allowed) by the currently logged in user. Currently attempts to replicate ala:

LocalModel.replicate(RemoteModel, function (){
  RemoteModel.replicate(LocalModel, function (){
   });
});

will 401 unless the user (or $everyone) has read/write access to the entire Model.

Maybe I'm misunderstanding the current implementation?

mbuster avatar Mar 27 '15 16:03 mbuster

Please post questions to https://groups.google.com/forum/#!forum/loopbackjs. See https://github.com/strongloop/loopback/wiki/Reporting-issues#question for more details.

superkhau avatar Mar 30 '15 15:03 superkhau