- Joined
- Mar 8, 2022
- Messages
- 13
- Reaction score
- 6
Hello again, i figured why you did what you did in
I have edited the code to look like this:
I mean it makes sense, canRenew is false if you don't have an active upgrade.
This time i tested both states (renew and buying the sub) and both work.
Best regards
zordem
src/addons/XenSoluce/UpgradeCoupons/Pub/Controller/UpgradeCoupons.php
on line 49. The changes from yesterday let to users being unable to buy an upgrade.I have edited the code to look like this:
Code:
if(!$upgrade->canRenew() && !$upgrade->canPurchase())
{
return $this->error(\XF::phrase('requested_page_not_found'));
}
I mean it makes sense, canRenew is false if you don't have an active upgrade.
This time i tested both states (renew and buying the sub) and both work.
Best regards
zordem
Last edited: