Lower standards

This commit is contained in:
Timur Ismagilov 2024-07-28 13:24:11 +03:00
parent 62e62d6274
commit d551b28d4a
2 changed files with 3 additions and 3 deletions

View File

@ -37,8 +37,8 @@ var minimalRights = map[string]int{
"upload-binary": 1, "upload-binary": 1,
"rename": 1, "rename": 1,
"upload-text": 1, "upload-text": 1,
"add-to-category": 2, "add-to-category": 1,
"remove-from-category": 2, "remove-from-category": 1,
"remove-media": 2, "remove-media": 2,
"update-header-links": 3, "update-header-links": 3,
"delete": 3, "delete": 3,

View File

@ -128,7 +128,7 @@ func handlerAddToCategory(w http.ResponseWriter, rq *http.Request) {
http.Redirect(w, rq, redirectTo, http.StatusSeeOther) http.Redirect(w, rq, redirectTo, http.StatusSeeOther)
return return
} }
log.Println(user.FromRequest(rq).Name, "added", hyphaName, "to", catName) slog.Info(user.FromRequest(rq).Name, "added", hyphaName, "to", catName)
categories.AddHyphaToCategory(hyphaName, catName) categories.AddHyphaToCategory(hyphaName, catName)
http.Redirect(w, rq, redirectTo, http.StatusSeeOther) http.Redirect(w, rq, redirectTo, http.StatusSeeOther)
} }