Page 1 of 2

Is it possible with ACL?

Posted: Fri Jun 28, 2013 7:13 pm
by hugocalmeida

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


Is it possible with ACL?

Posted: Fri Jun 28, 2013 7:50 pm
by maxkatz

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


Is it possible with ACL?

Posted: Fri Jun 28, 2013 8:17 pm
by hugocalmeida

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


Is it possible with ACL?

Posted: Fri Jun 28, 2013 8:21 pm
by maxkatz

Is it possible with ACL?

Posted: Fri Jun 28, 2013 8:44 pm
by hugocalmeida

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


Is it possible with ACL?

Posted: Fri Jun 28, 2013 10:09 pm
by maxkatz

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?


Is it possible with ACL?

Posted: Sun Jun 30, 2013 3:52 pm
by hugocalmeida

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.


Is it possible with ACL?

Posted: Mon Jul 01, 2013 12:08 am
by maxkatz

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)


Is it possible with ACL?

Posted: Fri Feb 27, 2015 4:35 am
by EJLD

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


Is it possible with ACL?

Posted: Mon Mar 02, 2015 11:12 am
by Evgene Karachevtsev

Hello Eric,

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