moleculerjs / moleculer-web

:earth_africa: Official API Gateway service for Moleculer framework
http://moleculer.services/docs/moleculer-web.html
MIT License
295 stars 118 forks source link

When alias has an associated handler, it doesn't authorize the request. #41

Closed kuber- closed 6 years ago

kuber- commented 6 years ago

Hi there,

When alias handler is available, it returns on line 503 (pls. see link below). This skips preActionCall call. Which in turn skips authorize call, amongst other helpful function like onBeforeCall.

https://github.com/moleculerjs/moleculer-web/blob/08cdc3c329a9922e88da66a8b803b1c74878a287/src/index.js#L503

felipegcampos commented 6 years ago

Hey bro, refer to issue #42 I just created. I think it can help to solve the problem for now. Regards.