It depends :)
- How does do you app authorize itself ? If you generate a token as a user, and if your app uses that token, then the app will only see the domains that that use can see. You don't need to modify the AQL
- If you app uses an admin token, i.e. can see all domains, then yes, you'd need to add domainid to the where clause..
------------------------------
Christopher Meenan
------------------------------