by pass pricing profile need
This commit is contained in:
@@ -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{}
|
||||||
|
|||||||
Reference in New Issue
Block a user