mirror of
https://github.com/amir20/dozzle.git
synced 2026-01-01 18:47:25 +01:00
feat!: removes custom content help support
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
"path"
|
||||
|
||||
"github.com/amir20/dozzle/internal/auth"
|
||||
"github.com/amir20/dozzle/internal/content"
|
||||
"github.com/amir20/dozzle/internal/docker"
|
||||
"github.com/amir20/dozzle/internal/profile"
|
||||
|
||||
@@ -54,16 +53,6 @@ func (h *handler) executeTemplate(w http.ResponseWriter, req *http.Request) {
|
||||
"enableActions": h.config.EnableActions,
|
||||
}
|
||||
|
||||
pages, err := content.ReadAll()
|
||||
if err != nil {
|
||||
log.Errorf("error reading content: %v", err)
|
||||
} else if len(pages) > 0 {
|
||||
for i, _ := range pages {
|
||||
pages[i].Content = ""
|
||||
}
|
||||
config["pages"] = pages
|
||||
}
|
||||
|
||||
user := auth.UserFromContext(req.Context())
|
||||
if user != nil {
|
||||
if profile, err := profile.Load(*user); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user