From ec44ccfc0785aa6b4936cf7bd126d9b53c270a5d Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Tue, 18 Aug 2020 12:39:46 -0700 Subject: [PATCH] Fix bug in authorizer --- lib/common/authorizer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common/authorizer.ts b/lib/common/authorizer.ts index f4e2550..b35da99 100644 --- a/lib/common/authorizer.ts +++ b/lib/common/authorizer.ts @@ -124,7 +124,8 @@ export default class Authorizer { if (value == null) break; } } else if (object[entry]) { - value = object[entry][paramName]; + if (paramName) value = object[entry][paramName]; + else value = object[entry]; } return value;