Skip to content

Commit

Permalink
#707 Limit cancelled subscription notifications to admin app only
Browse files Browse the repository at this point in the history
  • Loading branch information
amazeika committed Jun 28, 2024
1 parent 26683d6 commit 82c19d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function _beforeRender(KControllerContextInterface $context)
}
elseif ($subscription = $license->getSubscription($this->_getComponent(true)))
{
if (isset($subscription['cancelled']) && $subscription['cancelled'])
if (isset($subscription['cancelled']) && $subscription['cancelled'] && $this->_isAdmin())
{
$remaining = ($subscription['end'] - time())/604800;

Expand Down

0 comments on commit 82c19d7

Please sign in to comment.