ACL is not working when calling api internally ?
Description/Steps to reproduce
I set ACL to controll access to "Listing.update_stock" by $owner.
When I call from remote without token, for example, curl http://xxx.xxx.xxx.xxx/api/listings/update_stock, it will be blocked by error authorization.
But when I call this api internally, for example, in this no need authorization api function:
Listing.find(xxx, function(err, lst) {
// This call is no need authorization
Listing.update_stock(xxxx)
})
If I want to make this internal api call being authorized, how can I do about it ?
@fanttm ACL is for rest api calls, what is need of ACL for internal call at server ?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.