diff --git a/lib/common/authorizer.ts b/lib/common/authorizer.ts index 3bb7eab..afc6d7e 100644 --- a/lib/common/authorizer.ts +++ b/lib/common/authorizer.ts @@ -119,7 +119,7 @@ export default class Authorizer { value = object[entry]; for (const seg of paramName.split(".")) { // typeof null is "object" - if (value != null && typeof value !== "object") value = null; + if (value !== null && typeof value !== "object") value = null; else value = value[seg]; if (value == null) break; }