🔧 refactor(model): change user group retrieval to non-strict mode

This commit is contained in:
CaIon
2025-07-06 10:23:38 +08:00
parent 6c9369a2c9
commit b67a4fda9b

View File

@@ -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,