Lower standards
This commit is contained in:
parent
62e62d6274
commit
d551b28d4a
@ -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,
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user