Fixed netowner not able to get pricing in own networks from AddressdbAPI
This commit is contained in:
@@ -911,8 +911,11 @@ class AddressdbApicontroller extends mfBaseApicontroller {
|
||||
if(!$netop) {
|
||||
$netop = PreordercampaignOperatorModel::getFirst(["operator_id" => $this->me->address_id, "preordercampaign_id" => $campaign->id]);
|
||||
}
|
||||
|
||||
if(!$netop) {
|
||||
return mfResponse::Unauthorized();
|
||||
if($campaign->network->owner_id != $this->me->address_id) {
|
||||
return mfResponse::Unauthorized();
|
||||
}
|
||||
}
|
||||
|
||||
$netoperator = $netop->operator;
|
||||
|
||||
Reference in New Issue
Block a user