How can I use ACL so that a logged in user can only view/edit his own database things? Is this possible to do with ACL or do I have to put an UserID foreign key in the collection where the data is stored? thanks
How can I use ACL so that a logged in user can only view/edit his own database things? Is this possible to do with ACL or do I have to put an UserID foreign key in the collection where the data is stored? thanks
If you add an ACL to each object -- only those users in the ACL will be able to view/edit the record.
Is there any example of how to set the acl when saving an Item to the database?
Yes, I have read it. I was hoping for a more practical example.
If I set the acl for a record, when I test a query it doesn't return any results.
What should I put in the field column for the record? ex:"4ffcfd9fe4b0211629c4ad06": { "read": true, "write": true } ?
What you have above is correct. User id 4ffc... will be able to read and write the object. Can you show me what you tried?
Imagine you have a todo list kind of app, with several users, all list items are stored in the back services DB. How do I setup the acl in order that each individual user only has access to his todo list?
I tried to save a record on the acl field but when I try to query it just doesn't return any results.
So when acl field is not filled, every user sees every item, when is set no user sees any item.
When no ACL is set, any one can view/edit the record (as long as they have the database id). If you set the ACL, only those users that now have access to the list (read and/or write)
Hi There, do you know why the users-table's ACL I reset is not kept but changed back to previous (maybe initial setting).
It happening not with all records but 2 of them only.
concretely, I set the general to read but not write.
and then, for each user, I set "" read:true, and user "read" and "write".
but for 2 of them it comes back to "" read and write ???
shall I reopen new records for those 2 ?
before better off understanding if any reason
thks in advance,
Eric
Hello Eric,
We are sorry for delay. Yes, please try to create a new one.