Hello,
I would like to implement the following for my app and I’m not sure how this can work with the privacy rules.
Users have a profile that is not publicly visible by default.
Now users should be able to optionally activate a public profile that makes part of their information public.
How can I realise this? In the privacy rules, I can only define rules based on the current visitor.
However, I would have to specify the rule based on the user whose profile is to be displayed.
Something like ‘If publicProfile is Yes’ or similar.
How can I solve this?
The only workaround I can think of would be to define a new data type for the public profile information, which is public by default and when a user activates his public profile, a copy of his information is created in this new data type.
But that sounds like a lot of unnecessary work to me.
Oh man, that didn’t work for me and I made two mistakes:
a) I mixed up This User and Current User
b) I forgot to set at least one profile to public yes during the test so that the condition could work at all …
Thank you very much, that definitely makes my life easier!
In this context, I have another question that I can only answer myself to a limited extent using the search function and therefore want to be on the safe side.
Users (the ‘pro’ object in the screenshot below) also have references that they can upload. These are saved as separate data types (assignment within the references object is made to the Pro object) and should also be visible in the public profile.
As you can see in the screenshot, the condition only works for displaying fields, but not for activating the search.
I would now activate ‘Find in searches’ for everyone.
Would the data still be secure as shown in the screenshot?