Load the list when setting a background
This commit is contained in:
parent
42ddee8d6f
commit
aae1bc3cab
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ func (bp *BackgroundProvider) SetBackground(c echo.Context) error {
|
|||
log.Infof("Tried to update list background of list %d while not having the rights for it (User: %v)", listID, auth)
|
||||
return echo.NewHTTPError(http.StatusForbidden)
|
||||
}
|
||||
// Load the list
|
||||
if err := list.GetSimpleByID(); err != nil {
|
||||
return handler.HandleHTTPError(err, c)
|
||||
}
|
||||
|
||||
image := &background.Image{}
|
||||
err = c.Bind(image)
|
||||
|
|
Loading…
Reference in a new issue