fix(distribution): 统一分销订单租户管理口径
This commit is contained in:
@@ -44,9 +44,6 @@ func (r *Repository) Create(ctx context.Context, renterID uint64, req CreateRequ
|
||||
if requestTenantID > 0 && renter.TenantID != requestTenantID {
|
||||
return ErrPermissionDenied
|
||||
}
|
||||
if requestTenantID > 0 && listing.DistributionSiteID != nil && *listing.DistributionSiteID > 0 {
|
||||
return ErrListingUnavailable
|
||||
}
|
||||
buyerTenantID := renter.TenantID
|
||||
if requestTenantID > 0 {
|
||||
buyerTenantID = requestTenantID
|
||||
|
||||
Reference in New Issue
Block a user