Forum Academy Marketplace Showcase Pricing Features

Privacy Rules - Confusion

So bubble is telling me that the type contact us privacy rule condition shouldnt be empty. BUT! Look at the rule.

So, can someone help me understand. This vs Current.
Thanks

Hi there, @jasoncruz.dev… it probably needs to be more like This Contact Us is Current User and Current User is logged in and Current User's ActiveStatus is "yes" and Current User's SiteOwner is ???. Notice the change to the “is logged in” part, and you need to complete the condition on the end.

Hope this helps.

Best…
Mike

Ok ill try this.

Current User’s SiteOwner is ???

This part here, if I choose an option of “yes” or “no” it will go red and make me continue to add rules, only way I can get it to turn blue, is to not select an option after Current User’s SiteOwner

Does this make sense? This is another issue im having, Let me try your suggestion.
Thanks

So the way you suggested doesnt give me the option to just select current user, then add “and” to start a new rule. Look at pic

Are you trying to say This Contact Us's Creator is Current User?

Well no, If I did it that way it may not work also.

so the docs say this:

CREATOR
“This returns the user who created the current thing. If the user was not logged in when the thing was created, it will be empty.”

You know reading this now, kinda makes me think that we shouldnt be using “This” when running privacy rules, and instead use “Current_User” because of that statement above, it strickly says that “This returns the user who created the current thing.”

If the user was not logged in when the thing was created, it will be empty. Or in other words, whatever the creator tries inputting their data into a form that data will not be saved as a thing to the databse properly because at this point the creator isnt logged in.

Am i understanding this? What do you think?

Can you describe what you actually want the rule to do? Something like “things in the Contact Us data type should only be able to be seen by the user who created them and that user needs to be logged in and the ActiveStatus field for the user needs to be set to yes and the SiteOwner field for the user needs to be set to whatever”.

If you don’t care who created the thing (or it’s going to be blank), then maybe the rule just needs to be Current User is logged in and Current User's ActiveStatus is "yes" and Current User's SiteOwner is yes?

Well, seeing that, that is my only left option that would make sense. But what is the purpose of “This” thats what im trying to understand…

If I go that route and use Current User is logged in and Current User's ActiveStatus is "yes" and Current User's SiteOwner is yes - my question after that would be, is that the correct way it must be done to make it private to some users?

Make it private to which users? If you only want users who are logged in and whose ActiveStatus and SiteOwner fields are set to yes to be able to see things in that data type, then that rule will do the trick, assuming you keep the boxes for everyone else unchecked.

1 Like

Awesome, thanks for that input!

1 Like