Page 1 of 1

ACL = no data. What am I missing?

Posted: Mon Jul 15, 2013 4:59 pm
by Dupdroid

Good day,

I have just added the following string to the ACL column on all my rows for a specific user : {"0000d21be4b00ae00e261000":{"read":true,"write":true}}. Now no data are being returned by my rest services. Is there something else I need to to to get the acl working. I have read the documentations and it doesn't seem to be the case. What am I missing?

The id 0000d21be4b00ae00e261000 is the _id value taken from my users collection relating to the user I use to log into the app.

Please help.

Regards,
Christo


ACL = no data. What am I missing?

Posted: Mon Jul 15, 2013 8:33 pm
by Kateryna Grynko

Hi Christo,

Were all the requests processed properly before using ACL?

Please show us several screen shots with requests data/mapping. We need some more information to find the issue.


ACL = no data. What am I missing?

Posted: Mon Jul 15, 2013 9:16 pm
by Kateryna Grynko

You might not be including the session id. Please check.


ACL = no data. What am I missing?

Posted: Mon Jul 15, 2013 9:48 pm
by Dupdroid

Hi Katya

I have not bound the session id to my request parameters X-Appery-Session-Token before, but I have done that now and still no data is returned by my rest services.

I don’t think your documentation mention binding the X-Appery-Session-Token when using ACL, why are you suggesting it?


ACL = no data. What am I missing?

Posted: Mon Jul 15, 2013 9:56 pm
by Dupdroid

Thank you Katya!

The session id did the trick. It's not mentioned in the documentation though. Or did I miss it?

Thanx again.


ACL = no data. What am I missing?

Posted: Mon Jul 15, 2013 10:24 pm
by maxkatz

It should be in the docs.. if you set an ACL -- then only those users can access the object(s) so a session is is required. Otherwise, no one can view/edit the object(s).