You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depending on where you place the @Authorized decorator on your controller, the value of the role passed in is returned as either a string or an array which is a bit inconsistent
The StringController will output Role inside the authorizationChecker whilst the ArrayController will return ['Role']. Shouldn't the value of the role remain the same no matter where the decorator is placed?
This is using routing-controllers@0.7.5, express@4.16.2 and node@8.2.1
The text was updated successfully, but these errors were encountered:
Depending on where you place the
@Authorized
decorator on your controller, the value of the role passed in is returned as either a string or an array which is a bit inconsistentTake this as an example
The
StringController
will outputRole
inside theauthorizationChecker
whilst theArrayController
will return['Role']
. Shouldn't the value of the role remain the same no matter where the decorator is placed?This is using
routing-controllers@0.7.5
,express@4.16.2
andnode@8.2.1
The text was updated successfully, but these errors were encountered: