Skip to content

Commit

Permalink
Fix the bug that users without any org can not see their private mode…
Browse files Browse the repository at this point in the history
…ls in index page (#147)
  • Loading branch information
pulltheflower authored Oct 15, 2024
1 parent 0ee28e1 commit 25ebc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/rpc/user_svc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 25ebc25

Please sign in to comment.