Gestion des utilisateurs
This commit is contained in:
parent
157c33227e
commit
9d25ca20df
14 changed files with 576 additions and 26 deletions
|
|
@ -46,7 +46,7 @@ func SectionShow(c *fiber.Ctx) error {
|
|||
}
|
||||
|
||||
if result.Error != nil {
|
||||
return err
|
||||
return result.Error
|
||||
}
|
||||
|
||||
title := fmt.Sprintf(
|
||||
|
|
@ -143,7 +143,7 @@ func SectionEdit(c *fiber.Ctx) error {
|
|||
}
|
||||
|
||||
if result.Error != nil {
|
||||
return err
|
||||
return result.Error
|
||||
}
|
||||
|
||||
title := fmt.Sprintf(
|
||||
|
|
@ -220,7 +220,7 @@ func SectionDelete(c *fiber.Ctx) error {
|
|||
|
||||
result := db.Delete(&models.Section{}, id)
|
||||
if result.Error != nil {
|
||||
return err
|
||||
return result.Error
|
||||
}
|
||||
|
||||
return c.Redirect("/admin/sections")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue