fix(search): file type

This commit is contained in:
Xhofe
2022-04-08 22:47:04 +08:00
parent a73a40133d
commit 4c22f37d54
2 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,7 @@ type SearchReq struct {
}
func Search(c *gin.Context) {
if conf.GetBool("enable search") {
if !conf.GetBool("enable search") {
common.ErrorStrResp(c, "Not allowed search", 403)
return
}