增加是否开启导出功能的选项

This commit is contained in:
lifei6671
2018-07-12 18:44:02 +08:00
parent 97f1d0f8a7
commit e694e63299
4 changed files with 13 additions and 0 deletions

View File

@@ -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() {