by pass pricing profile need

This commit is contained in:
mr
2026-02-17 10:02:44 +01:00
parent 403913d8cf
commit 842e09f22f

View File

@@ -125,14 +125,14 @@ func (abs *AbstractInstanciatedResource[T]) ConvertToPricedResource(t tools.Data
if profile == nil { if profile == nil {
if len(profiles) > 0 { if len(profiles) > 0 {
profile = profiles[0] profile = profiles[0]
} else { } else { // TODO : reset Self for Pricing Profile
if ok, _ := utils.IsMySelf(request.PeerID, (&peer.Peer{}).GetAccessor(&tools.APIRequest{ /*if ok, _ := utils.IsMySelf(request.PeerID, (&peer.Peer{}).GetAccessor(&tools.APIRequest{
Admin: true, Admin: true,
})); ok { })); ok {*/
profile = pricing.GetDefaultPricingProfile() profile = pricing.GetDefaultPricingProfile()
} else { /*} else {
return nil, errors.New("no pricing profile found") return nil, errors.New("no pricing profile found")
} }*/
} }
} }
variations := []*pricing.PricingVariation{} variations := []*pricing.PricingVariation{}