I’m trying to figure out if this is possible or how to model it in Parse: a collaborative recipe library. If my app was single user, it’d be straight forward When adding collaboration, it gets more complicated.
Use Case
User A has a library of recipes. User A invites User B to their library and grants them ReadWrite access level.
In Parse
I’m planning having a Library and Recipe class (there’s likely going to be many more child classes to a Library). Granting access to User B could be implemented as an ACL. How do I grant access to all the recipes contained in this library?
Solution A
Iterate through children recipes and add User B to the ACL on each record.
Solution B
When creating a Library, create a role. When a recipe gets created, it gets added to this role. User A adds User B to the role and hence, is given the same ACL on all the records.
Con: There will be as many Roles as there are Library! Is that a problem?
Are there other ways to model this?
Thanks!