You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm wanting to use fusio as the backend for an app that I'm developing. I can see that Fusio has users that can register and log in via the api. However, let's say for example that I'm creating a todo app and I have a table that contains the all the Todo items for every user in my app. But the end user should be restricted to only be able to do CRUD operations on the items with their user id.
How do I accomplish this using fusio? Do I need to write PHP code to get the current userId? Or is there a built-in feature for this use case? Are there any existing samples or documentation about this case?
Thank you!
The text was updated successfully, but these errors were encountered:
You can pass the user id of the context $context->getUser()->getId() to your table.
We have also an example app s. https://github.com/apioo/fusio-sample-cms which shows how to build a more complex backend app, there we also use this user id. You could also take a look at our APIgen project which provides a way to generate a complete backend API based on an entity definiton.
Hi,
I'm wanting to use fusio as the backend for an app that I'm developing. I can see that Fusio has users that can register and log in via the api. However, let's say for example that I'm creating a todo app and I have a table that contains the all the Todo items for every user in my app. But the end user should be restricted to only be able to do CRUD operations on the items with their user id.
How do I accomplish this using fusio? Do I need to write PHP code to get the current userId? Or is there a built-in feature for this use case? Are there any existing samples or documentation about this case?
Thank you!
The text was updated successfully, but these errors were encountered: