When a user is on the app and we use the make changes to thing to make changes to the ‘current user’ and add data to the different data fields on the user data type, these values are supposed to be saved to the ‘current user’, whether they are logged in or not. When a user is logged out, Bubble has cookies that saves this information.
Let’s say for example I have two data fields, the first is called ‘address’ and is of type geographic address, and the second is called ‘is-in-range’ and is of yes/no type. The user who is logged out, and not a registered user, can input their address and the system will evaluate if they are in range. If the user is in range the default value of no is changed to yes, but if they are not in range the value remains no. Also, the address is saved which has no default value.
Then afterward, the user signs up to the app. All of that data is saved on their user data type, and for the example the in range field is yes and address is saved.
Now, let’s say that same user logs out and refreshes their browser…
- Should the address field be empty?
- Should the is-in-range field be the default value of no?
- Should the is-in-range field be set to yes?
Also, let’s say that privacy rules make it such that ‘current user is this user’ and all fields are available, but for ‘everyone else’ the privacy rule makes it so the address field is not available.
- Should the now logged out user be able to see the address field value?
- Should the now logged out user after refreshing the browser be able to see the address field value?