NICK97
Member
Unfortunately I have found this bug related to your add-ons and I have contact different developer to confirm the issue this is what’s he says
This is due to the fact that DigitalProduct is saved only on finalizeResourceCreate, and some of your addons tries to call canView() method for resource discussion thread BEFORE the resource saving is completed.
XFA\RMMarketplace\XF\Entity\Thread
here some screenshots


This is due to the fact that DigitalProduct is saved only on finalizeResourceCreate, and some of your addons tries to call canView() method for resource discussion thread BEFORE the resource saving is completed.
XFA\RMMarketplace\XF\Entity\Thread
Code:
public function canView(&$error = null)
{
$canView = parent::canView($error);
....
// Has purchased product or own license
if ($resource->xfa_rmmp_type == 'digital')
{
if ($resource->DigitalProduct // TODO: make sure it's exists since the resource type does not mean that the relation is saved yet
&& $resource->DigitalProduct->hasValidLicense())
{
return true;
}
}
else
{
if ($resource->ValidPurchase)
{
return true;
}
}
return false;
}
here some screenshots

