Commit b67a4fda by CaIon

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

parent 6c9369a2
...@@ -130,7 +130,7 @@ func ListModels(c *gin.Context) { ...@@ -130,7 +130,7 @@ func ListModels(c *gin.Context) {
} }
} else { } else {
userId := c.GetInt("id") userId := c.GetInt("id")
userGroup, err := model.GetUserGroup(userId, true) userGroup, err := model.GetUserGroup(userId, false)
if err != nil { if err != nil {
c.JSON(http.StatusOK, gin.H{ c.JSON(http.StatusOK, gin.H{
"success": false, "success": false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment