1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Bumped version.

Updated Readme.
Can't delete about page.
This commit is contained in:
Zack Scholl
2016-02-14 09:55:05 -05:00
parent 0228d53929
commit dfe00ad570
4 changed files with 16 additions and 20 deletions

View File

@@ -260,9 +260,10 @@ func deletePage(c *gin.Context) {
fmt.Println(adminKey)
fmt.Println(deleteName)
// if adminKey == RuntimeArgs.AdminKey || true == true {
p := WikiData{strings.ToLower(deleteName), "", []string{}, []string{}}
p.save("")
if strings.ToLower(deleteName) != "about" {
p := WikiData{strings.ToLower(deleteName), "", []string{}, []string{}}
p.save("")
}
// // remove from program data
// var deleteKey []byte
// foundKey := false