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