Privacy rules

Hello everyone, hope this message finds you well...

I came from bubble and i have some doubts about privacy rules.

In bubble we have privacy rules for each thing that we create in db. In my case i need the current user that's using the app to see only what he created.

How can i set up those privacy rules so the users only see what they should see (only they information)?

Thanks,
Rodrigo

Simply add a condition to your database query.
Say you have the id of the 'owner' of the record is stored in a field called user_id then simply add the condition to check that matches the currently logged in user like
user_id = securityprovider.identity

1 Like

Ok, in bubble in each database we have the 'createdby(email)'.

In wappler i just need to have the id of the user and then in each server action i just add the condition user_id = securityprovider.identity, that should work.

Thanks Brian! Have a nice weekend!

1 Like

You can use a security identify step to make the identity value availble to the picker

Sorry, i didn't understand... Can you elaborate?

If you look in the security provider group in server connect you will see a component called security identify.
Add it to your server action and you will see a step called identity is available in the picker which you can select to return the identity of the current logged in user.

1 Like

Oh right, i see! Thanks Brian!

Have a look at this video where the Security Provider is discussed

3 Likes