diff --git a/controllers/document.go b/controllers/document.go index fd4fccb7..c7fe2eb5 100644 --- a/controllers/document.go +++ b/controllers/document.go @@ -645,7 +645,7 @@ func RecursiveFun(parent_id int,prefix,dpath string,c *DocumentController,book paths.PushBack(fpath) - f, err := os.OpenFile(fpath, os.O_CREATE, 0666) + f, err := os.OpenFile(fpath, os.O_CREATE, 0777) if err != nil { beego.Error(err)