diff --git a/pkg/services/oss_service.go b/pkg/services/oss_service.go index f5bc328..29ac6f6 100755 --- a/pkg/services/oss_service.go +++ b/pkg/services/oss_service.go @@ -332,5 +332,8 @@ func NewOSSProviderByID(id uint) (OSSProvider, error) { if err != nil { return nil, fmt.Errorf("error obteniendo configuración OSS #%d: %w", id, err) } + if !cfg.IsActive { + return nil, fmt.Errorf("la configuración OSS #%d está inactiva", id) + } return NewOSSProvider(cfg) }