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 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 {
|
||||
})); ok {*/
|
||||
profile = pricing.GetDefaultPricingProfile()
|
||||
} else {
|
||||
/*} else {
|
||||
return nil, errors.New("no pricing profile found")
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
variations := []*pricing.PricingVariation{}
|
||||
|
||||
Reference in New Issue
Block a user