añadidas imagenes a los grupos y pérmisos

This commit is contained in:
fede committed 2026-11-07 23:54:25 -03:00
1 parent 00f140480d
commit cec07f51f9
4 files changed
+191 -64

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ func (r *repositorioGrupo) ObtenerPorIDConRelaciones(id uint, simple bool) (*mod
if simple {
if err := r.db.
Preload("Permisos", func(db *gorm.DB) *gorm.DB {
return db.Select("id", "nombre", "alias")
return db.Select("id", "nombre", "alias", "imagen")
}).
First(&grupo, id).Error; err != nil {
return nil, err