Commit 6c9369a2 by CaIon

🔧 refactor(model): update context key retrieval to use token group instead of user group

parent aa0edd8d
...@@ -139,7 +139,7 @@ func ListModels(c *gin.Context) { ...@@ -139,7 +139,7 @@ func ListModels(c *gin.Context) {
return return
} }
group := userGroup group := userGroup
tokenGroup := common.GetContextKeyString(c, constant.ContextKeyUserGroup) tokenGroup := common.GetContextKeyString(c, constant.ContextKeyTokenGroup)
if tokenGroup != "" { if tokenGroup != "" {
group = tokenGroup group = tokenGroup
} }
......
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