cancel hide file for admin #343

This commit is contained in:
微凉
2022-01-14 18:00:47 +08:00
parent 424ec10692
commit 1640a52789
2 changed files with 8 additions and 2 deletions

View File

@ -18,6 +18,7 @@ func PathCheck(c *gin.Context) {
c.Set("req", req)
token := c.GetHeader("Authorization")
if token == conf.Token {
c.Set("admin", true)
c.Next()
return
}