From 25ebc2521ed9724ee9a194706783d2a4e45a6d1d Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 15 Oct 2024 11:51:08 +0800 Subject: [PATCH] Fix the bug that users without any org can not see their private models in index page (#147) --- builder/rpc/user_svc_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/rpc/user_svc_client.go b/builder/rpc/user_svc_client.go index 97fe7d7f..378004f0 100644 --- a/builder/rpc/user_svc_client.go +++ b/builder/rpc/user_svc_client.go @@ -57,7 +57,7 @@ func (c *UserSvcHttpClient) GetNameSpaceInfo(ctx context.Context, path string) ( } func (c *UserSvcHttpClient) GetUserInfo(ctx context.Context, userName, visitorName string) (*User, error) { - url := fmt.Sprintf("/api/v1/user/%s", userName) + url := fmt.Sprintf("/api/v1/user/%s?current_user=%s", userName, visitorName) var r httpbase.R r.Data = &User{} err := c.hc.Get(ctx, url, &r)