Hello everyone,
We just released a new Bubble Version that introduces a tweak into how privacy rules are enforced in backend workflows. This update allows privacy rules to be more powerful, giving you more control over what kinds of data your users can see.
Thanks to @rob.winterbottom for implementing this!
The change concerns expressions that look like “Current User’s X’s Y” and the way privacy rules interact with them. For example, consider this expression:
Current User’s friends:each item’s user’s email
On previous Bubble versions, if the Current User was not authorized to see other users’ emails, this data would (unintentionally) still return the emails of each of the Current User’s friends. On Bubble Versions 23+, nothing will be displayed unless the Current User is explicitly permitted to see this data. More generally, privacy rules are now applied to data types that are referenced by Current User (and also data types referenced by those data types, and so forth) instead of stopping at depth 1.
This new behavior is more in line with existing expectations around the privacy rules work and allows for more powerful privacy rules—and ultimately better security for your apps. Since this change could potentially affect the behavior of existing apps, we’re releasing it as a Bubble version.
You can upgrade to the latest version in the Settings->Version tab. After the upgrade is complete, check any expressions that may be affected and ensure they still work as expected. You may need to adjust your privacy rules!