修改普通用户分享资产时只能查看到普通用户 close #133

This commit is contained in:
dushixiang authored and dushixiang committed 2021-05-16 20:13:22 +08:00
1 parent 696c219c24
commit f8c29b23b9
2 files changed
+11 -2

No files matched your search

+2 -1
View File
@@ -49,7 +49,8 @@ func UserPagingEndpoint(c echo.Context) error {
order := c.QueryParam("order")
field := c.QueryParam("field")
items, total, err := userRepository.Find(pageIndex, pageSize, username, nickname, mail, order, field)
account, _ := GetCurrentAccount(c)
items, total, err := userRepository.Find(pageIndex, pageSize, username, nickname, mail, order, field, account)
if err != nil {
return err
}