🔧 refactor(model): update context key retrieval to use token group instead of user group
Some checks failed
Some checks failed
This commit is contained in:
parent
aa0edd8dce
commit
6c9369a2c9
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user