Json files should not be executable

Former-commit-id: 850733197b
This commit is contained in:
Silvus 2017-03-25 00:52:37 +01:00 committed by GitHub
parent 9248892668
commit 6e1c85e205
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func (p *Page) Save() error {
if err != nil {
return err
}
return ioutil.WriteFile(path.Join(pathToData, encodeToBase32(strings.ToLower(p.Name))+".json"), bJSON, 0755)
return ioutil.WriteFile(path.Join(pathToData, encodeToBase32(strings.ToLower(p.Name))+".json"), bJSON, 0644)
}
func (p *Page) Erase() error {