Skip to content

Commit

Permalink
fix:修复下载附件的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
lifei6671 committed Aug 29, 2018
1 parent 2f573a9 commit fa1cb9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/BlogController.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ func (c *BlogController) Download() {
}
blogReadSession := fmt.Sprintf("blog:read:%d",blogId)
//如果没有启动匿名访问,或者设置了访问密码
if (c.Member != nil && !c.EnableAnonymous) || ( blog.BlogStatus == "password" && password != blog.Password && c.CruSession.Get(blogReadSession) == nil) {
if (c.Member == nil && !c.EnableAnonymous) || ( blog.BlogStatus == "password" && password != blog.Password && c.CruSession.Get(blogReadSession) == nil) {
c.ShowErrorPage(403, "没有下载权限")
}

Expand Down

0 comments on commit fa1cb9a

Please sign in to comment.