From 842e09f22f83e4843213746f4342a3b23c7a0aa4 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 17 Feb 2026 10:02:44 +0100 Subject: [PATCH] by pass pricing profile need --- models/resources/resource.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/models/resources/resource.go b/models/resources/resource.go index a4bb215..33eab9e 100755 --- a/models/resources/resource.go +++ b/models/resources/resource.go @@ -125,14 +125,14 @@ func (abs *AbstractInstanciatedResource[T]) ConvertToPricedResource(t tools.Data if profile == nil { if len(profiles) > 0 { profile = profiles[0] - } else { - if ok, _ := utils.IsMySelf(request.PeerID, (&peer.Peer{}).GetAccessor(&tools.APIRequest{ + } else { // TODO : reset Self for Pricing Profile + /*if ok, _ := utils.IsMySelf(request.PeerID, (&peer.Peer{}).GetAccessor(&tools.APIRequest{ Admin: true, - })); ok { - profile = pricing.GetDefaultPricingProfile() - } else { + })); ok {*/ + profile = pricing.GetDefaultPricingProfile() + /*} else { return nil, errors.New("no pricing profile found") - } + }*/ } } variations := []*pricing.PricingVariation{}