mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 10:48:00 +08:00
增加是否开启导出功能的选项
This commit is contained in:
@@ -823,6 +823,9 @@ func (c *DocumentController) Export() {
|
||||
promptUserToLogIn(c)
|
||||
return
|
||||
}
|
||||
if !conf.GetEnableExport() {
|
||||
c.ShowErrorPage(500,"系统没有开启导出功能")
|
||||
}
|
||||
|
||||
bookResult := models.NewBookResult()
|
||||
if c.Member != nil && c.Member.IsAdministrator() {
|
||||
|
Reference in New Issue
Block a user