fix: 修复 SpamBlock 配置越权 (#352)
This commit is contained in:
1 parent
87d3ce35d3
commit
da55756917
2 files changed
+21
No files matched your search
@@ -63,6 +63,9 @@ func (s *SpamBlock) SettingsHtml(ctx *context.Context, url string, requestData s
|
||||
}
|
||||
return fmt.Sprintf(index, s.cfg.ApiURL, s.cfg.ApiTimeout, s.cfg.Threshold)
|
||||
}
|
||||
if !ctx.IsAdmin {
|
||||
return "No Access Privileges"
|
||||
}
|
||||
|
||||
var cfg SpamBlockConfig
|
||||
var tempCfg map[string]string
|
||||
|
||||
Reference in new issue
Block a user