I know this topic is quite often talked about and i’ve watched several videos on it, not to mention searched around the forums, but i still can’t seem to get a grip on how to make these rules work for my app:
My app has:
- Users (employees of a company)
- Companies (with employees)
- Sites
I’m trying to restrict access to only the data for the company a user belongs to, so Lets say i’m a user, i only want to access Sites and user data for my company.
I’ve tried:
When: “This Site’s creator’s company is current user’s company”
- this works technically, but when i set it up this way, bubble gives a message saying that it can’t support searches with Rules that use “This Site’s X’s Y”
What can/should i do? is my data structure wrong somehow?