publishing is only allowed is it can be monitored and be accessible temp disable

This commit is contained in:
mr
2026-03-17 16:42:03 +01:00
parent c39bc52312
commit d0645f5ca7

View File

@@ -42,9 +42,9 @@ func (a *liveMongoAccessor[T]) CopyOne(data utils.DBObject) (utils.DBObject, int
return nil, 422, errors.New("can't publish a drafted compute units") return nil, 422, errors.New("can't publish a drafted compute units")
} }
live := data.(T) live := data.(T)
if live.GetMonitorPath() == "" || live.GetID() != "" { /*if live.GetMonitorPath() == "" || live.GetID() != "" {
return nil, 422, errors.New("publishing is only allowed is it can be monitored and be accessible") return nil, 422, errors.New("publishing is only allowed is it can be monitored and be accessible")
} }*/
if res, code, err := a.LoadOne(live.GetID()); err != nil { if res, code, err := a.LoadOne(live.GetID()); err != nil {
return nil, code, err return nil, code, err
} else { } else {