Skip to content

Commit

Permalink
fix: typo acL to acl (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Sep 20, 2023
1 parent 648b5fc commit a775d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/controller-decorator/src/model/HTTPControllerMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions core/controller-decorator/src/model/HTTPMethodMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class HTTPMethodMeta implements MethodMeta {
public readonly contextParamIndex: number | undefined;
public readonly paramMap: Map<number, ParamMeta>;
public readonly priority: number;
public readonly needAcL: boolean;
public readonly needAcl: boolean;
public readonly aclCode: string | undefined;
public readonly hosts: string[] | undefined;

Expand All @@ -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;
}
Expand Down

0 comments on commit a775d34

Please sign in to comment.