From 8073cbd96ad2133aad9930e078a7c79deeca11a1 Mon Sep 17 00:00:00 2001 From: CaIon Date: Sun, 6 Jul 2025 10:23:38 +0800 Subject: [PATCH] =?UTF-8?q?=20=20=F0=9F=94=A7=20refactor(model):=20change?= =?UTF-8?q?=20user=20group=20retrieval=20to=20non-strict=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/model.go b/controller/model.go index ff716e5d..31a66b29 100644 --- a/controller/model.go +++ b/controller/model.go @@ -130,7 +130,7 @@ func ListModels(c *gin.Context) { } } else { userId := c.GetInt("id") - userGroup, err := model.GetUserGroup(userId, true) + userGroup, err := model.GetUserGroup(userId, false) if err != nil { c.JSON(http.StatusOK, gin.H{ "success": false,