Page 1 of 1

Database test with ACL

Posted: Wed Jun 10, 2015 7:07 pm
by Marco Spera

Hi,

I have a database query service I am trying to use but it keeps returning only black when I test it.

I believe this is because each record in the database has a certain acl set for security.

How can I go about testing the service with different acl?

Can I simply just use the acl in the where field?

Thanks


Database test with ACL

Posted: Thu Jun 11, 2015 6:39 am
by Serhii Kulibaba

Hello Marco,

Appery.io automatically gets items according to ACL field. So if you don't get any data - please check user's id which you use, does he have permissions for reading items?
https://devcenter.appery.io/documenta...

Also check are there any errors in console? This (http://devcenter.appery.io/documentat...) should help.


Database test with ACL

Posted: Thu Jun 11, 2015 10:50 am
by Marco Spera

Hi Sergiy,

I don't quite understand your comment.

I do understand the way the acl works when testing the app specifically on the browser or native.

But I am talking about when you use the "test service" function from within the appery builder. There is no login to pass the acl to the test so it wouldn't know. That is why I am asking if I have to specifically tell it what the acl to test is, and if so, how can I do that?

Thanks