Skip to content

Commit

Permalink
🎨 Authorization is no longer required when exporting compressed packa…
Browse files Browse the repository at this point in the history
…ges in formats such as markdown #12442
  • Loading branch information
88250 committed Sep 11, 2024
1 parent 47fdeab commit 1eb19c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/model/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func CheckAuth(c *gin.Context) {

// 放过来自本机的某些请求
if localhost {
if strings.HasPrefix(c.Request.RequestURI, "/assets/") {
if strings.HasPrefix(c.Request.RequestURI, "/assets/") || strings.HasPrefix(c.Request.RequestURI, "/export/") {
c.Set(RoleContextKey, RoleAdministrator)
c.Next()
return
Expand Down

0 comments on commit 1eb19c1

Please sign in to comment.