bugfixes and updated go.mod

This commit is contained in:
ston1th 2019-05-15 22:52:27 +02:00
commit 6e317eb08b
300 changed files with 53136 additions and 9719 deletions

View file

@ -187,7 +187,7 @@ func (db *DB) UpdatePage(title, section, markdown, username string, p core.Permi
if err != nil {
return
}
if !db.WritePerm(title, username, page.Perm) {
if !db.WritePerm(section, username, page.Perm) {
return errPermissionDenied
}