frontend: don't give too much right on created files
This commit is contained in:
parent
6267b68cbe
commit
69ffb48a26
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ func saveTeamFile(dirname string, team string, filename string, w http.ResponseW
|
|||
|
||||
func saveFile(dirname string, filename string, r *http.Request) error {
|
||||
if _, err := os.Stat(dirname); os.IsNotExist(err) {
|
||||
if err := os.MkdirAll(dirname, 0777); err != nil {
|
||||
if err := os.MkdirAll(dirname, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue