Users who register on my website, will then fill in a form with personal data.
Then they can access their form and modify or delete any data except the email.
Each user will have a single item available in the collection common to all, and each user will only be able to access their data.
They will also have the option of deleting their registration and all their data, eliminating their item in the shared collection and their item in the member collection, if possible.
All users are members, not subscribers, with the only right to manage that form.
When users access the form, the data they see are only their own, I understand that I must filter the collection by the "Email" field of the user who has just logged in, since it is the data that their enter to identify.
The users will also have the possibility of eliminating the item, so they will not be able to make any changes anymore. It would be the equivalent to permanently unsubscribe.
My doubts are:
I don't know if I understand the difference between filtering the collection and filtering the dataset, and therefore I don't know which method to use.
The only requirement that I have is to filter the only item that exists for each user, so that only he accesses his data and can change them, delete them or delete their item.
As I see it, if the user decides to delete his item, and the filter is set on the dataset, on his form the data of the next user would appear, while if what is filtered is the collection, when the item is deleted, the result would be a form with the fields disabled because there will be no item to display due to the filter.
Is this correct? What is the safest way to do it ?.
Thanks for your help.