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{}