See the "username", that is the username of the logged in your. Using that username, you can query the "user" collection to get their account "_id". With that you can then create your filter with this filter parameter :
"_acl.creator" : the-account-_id-mentioned above
Unfortunately, this is a few more queries. But I don't know of a "proper" way other than this. Perhaps someone else has a better answer.
almost 8 years ago
Yea that's the way I ended up choosing yesterday too... in any accessControl method (find(), distinct(), ...) I add some parameters to the query in order to filter the results... similar to the one you're suggesting.
I suppose that if there's a built-in way of doing this might be faster. But if there isn't yet, I think this is the only solution :)