hugocalmeida
Posts: 0
Joined: Wed Jun 26, 2013 3:07 pm

Is it possible with ACL?

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is it possible with ACL?

If you add an ACL to each object -- only those users in the ACL will be able to view/edit the record.

hugocalmeida
Posts: 0
Joined: Wed Jun 26, 2013 3:07 pm

Is it possible with ACL?

Is there any example of how to set the acl when saving an Item to the database?

hugocalmeida
Posts: 0
Joined: Wed Jun 26, 2013 3:07 pm

Is it possible with ACL?

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 } ?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is it possible with ACL?

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?

hugocalmeida
Posts: 0
Joined: Wed Jun 26, 2013 3:07 pm

Is it possible with ACL?

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is it possible with ACL?

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)

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

Is it possible with ACL?

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Is it possible with ACL?

Hello Eric,

We are sorry for delay. Yes, please try to create a new one.

Return to “Issues”