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)?
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
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.
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.