feat: 令牌分组
This commit is contained in:
1 parent
120b5476e8
commit
4a02eb1b7f
13 files changed
+248
-120
No files matched your search
@@ -176,6 +176,7 @@ func TokenAuth() func(c *gin.Context) {
|
||||
c.Set("token_model_limit_enabled", false)
|
||||
}
|
||||
c.Set("allow_ips", token.GetIpLimitsMap())
|
||||
c.Set("token_group", token.Group)
|
||||
if len(parts) > 1 {
|
||||
if model.IsAdmin(token.UserId) {
|
||||
c.Set("specific_channel_id", parts[1])
|
||||
|
||||
Reference in new issue
Block a user