I wanted to see if there is a straightforward way of doing this the “Cuba Platform” way without custom code… I could just dive in… But, I want to work with the platform as much as possible and avoid reinventing the wheel.
Here is a very high level User Story…
Let’s say I have a Cuba Platform app…
I have an Admin who is “all seeing and all knowing.” He or she can see everyone’s records and edit everyone’s records.
I also have many “work groups” with exactly two members. Only those within the “work group” can see the records of others in their “work group.” Members in one work group cannot see the records of another work group.
Let’s look at an example:
Red Group - Bill and Mike
Green Group - Betty and David
Visibility of records:
The Admin can view, edit and delete records belonging to everyone.
Bill can view, edit and delete records belonging to himself and Mike because they are both members of the Red Group.
Mike can view, edit and delete records belonging to himself and Bill because they are both members of the Red Group.
Mike and Bill (in Red Group) have no visibility to records belonging to Betty and David (in Green Group) .
Betty and David (in Green Group) have no visibility to records belonging to Mike and Bill (in Red Group).
I would greatly appreciate it if someone could tell me how to implement this as cleanly as possible.
I appreciate your help.
Thanks!