Hi,
tldr; my app correctly filters fields that are supposed to be filtered out by privacy settings. However it loads the unique id, and my rg’s display white space for every item, even if the user isn’t supposed to be able to see it. I’d love a way to filter database access with privacy rules to COMPLETELY forego data retrieval with privacy rules.
My privacy rules are super well set up, I’m using them with a data type (“thing”) to load or not load based on a user field called role. If the user’s role and the thing’s role match, they should load.
Initially I was filtering all my rg’s, but that’s super intensive. So I removed all my :filter conditionals and migrated the display rules to the “privacy” section, which functions super well BUT ----
My app is still able to pull records from the database and displays them in the rg’s as loaded items. The rg loads the unique id, but nothing else (which is the intended behavior, I assume). But since the RG has no access to other fields, all my user gets is whitespace in the rg.
-
Idea - restrict access to all fields including the unique id so that the record doesn’t even load into the app. I’m assuming this would make bubble both faster and possibly safer.
-
Current hack I use: I put an extra collapsing group holding records and if the main field (name) is empty or access is blocked, the record will hide. This is not ideal because it actually ADDS a step and many conditionals for the app to load.
@neerja do you have any suggestions?