From a775d34d38c481c5f9e90504224553d31ad728d3 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Wed, 20 Sep 2023 09:54:17 +0800 Subject: [PATCH] fix: typo `acL` to `acl` (#156) --- core/controller-decorator/src/model/HTTPControllerMeta.ts | 2 +- core/controller-decorator/src/model/HTTPMethodMeta.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/controller-decorator/src/model/HTTPControllerMeta.ts b/core/controller-decorator/src/model/HTTPControllerMeta.ts index a0bd8ad9..bea96ff2 100644 --- a/core/controller-decorator/src/model/HTTPControllerMeta.ts +++ b/core/controller-decorator/src/model/HTTPControllerMeta.ts @@ -67,7 +67,7 @@ export class HTTPControllerMeta implements ControllerMetadata { } hasMethodAcl(method: HTTPMethodMeta): boolean { - return method.needAcL || this.needAcl; + return method.needAcl || this.needAcl; } getMethodAcl(method: HTTPMethodMeta): string | undefined { diff --git a/core/controller-decorator/src/model/HTTPMethodMeta.ts b/core/controller-decorator/src/model/HTTPMethodMeta.ts index 1357cbc3..59a40bbe 100644 --- a/core/controller-decorator/src/model/HTTPMethodMeta.ts +++ b/core/controller-decorator/src/model/HTTPMethodMeta.ts @@ -71,7 +71,7 @@ export class HTTPMethodMeta implements MethodMeta { public readonly contextParamIndex: number | undefined; public readonly paramMap: Map; public readonly priority: number; - public readonly needAcL: boolean; + public readonly needAcl: boolean; public readonly aclCode: string | undefined; public readonly hosts: string[] | undefined; @@ -94,7 +94,7 @@ export class HTTPMethodMeta implements MethodMeta { this.contextParamIndex = contextParamIndex; this.paramMap = paramTypeMap; this.priority = priority; - this.needAcL = needAcl; + this.needAcl = needAcl; this.aclCode = aclCode; this.hosts = hosts; }