From 6e0755167ad1bd6e2f9cc07717db107cb60973d7 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 22 Dec 2022 11:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4Agent=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/rpc/services/clients/service_client_agent_ip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rpc/services/clients/service_client_agent_ip.go b/internal/rpc/services/clients/service_client_agent_ip.go index dda628f1..309ac8ae 100644 --- a/internal/rpc/services/clients/service_client_agent_ip.go +++ b/internal/rpc/services/clients/service_client_agent_ip.go @@ -17,7 +17,7 @@ type ClientAgentIPService struct { // CreateClientAgentIPs 创建一组IP func (this *ClientAgentIPService) CreateClientAgentIPs(ctx context.Context, req *pb.CreateClientAgentIPsRequest) (*pb.RPCSuccess, error) { - _, _, err := this.ValidateNodeId(ctx, rpcutils.UserTypeAdmin, rpcutils.UserTypeDNS) + _, _, err := this.ValidateNodeId(ctx, rpcutils.UserTypeAdmin, rpcutils.UserTypeDNS, rpcutils.UserTypeNode) if err != nil { return nil, err } @@ -47,7 +47,7 @@ func (this *ClientAgentIPService) CreateClientAgentIPs(ctx context.Context, req // ListClientAgentIPsAfterId 查询最新的IP func (this *ClientAgentIPService) ListClientAgentIPsAfterId(ctx context.Context, req *pb.ListClientAgentIPsAfterIdRequest) (*pb.ListClientAgentIPsAfterIdResponse, error) { - _, _, err := this.ValidateNodeId(ctx, rpcutils.UserTypeAdmin, rpcutils.UserTypeDNS) + _, _, err := this.ValidateNodeId(ctx, rpcutils.UserTypeAdmin, rpcutils.UserTypeDNS, rpcutils.UserTypeNode) if err != nil { return nil, err }