diff --git a/internal/user/user.go b/internal/user/user.go index 27f142f..6aa500a 100644 --- a/internal/user/user.go +++ b/internal/user/user.go @@ -37,8 +37,8 @@ var minimalRights = map[string]int{ "upload-binary": 1, "rename": 1, "upload-text": 1, - "add-to-category": 2, - "remove-from-category": 2, + "add-to-category": 1, + "remove-from-category": 1, "remove-media": 2, "update-header-links": 3, "delete": 3, diff --git a/web/cats.go b/web/cats.go index 931617b..060c2f8 100644 --- a/web/cats.go +++ b/web/cats.go @@ -128,7 +128,7 @@ func handlerAddToCategory(w http.ResponseWriter, rq *http.Request) { http.Redirect(w, rq, redirectTo, http.StatusSeeOther) 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) http.Redirect(w, rq, redirectTo, http.StatusSeeOther) }