{{ "Contact your service provider for assistance."|trans }}
- {{ "Get Help"|trans }} {% endif %} diff --git a/web/xmds.php b/web/xmds.php index face94f719..f3b9a75d83 100755 --- a/web/xmds.php +++ b/web/xmds.php @@ -162,8 +162,16 @@ throw new \Xibo\Support\Exception\InstanceSuspendedException('Bandwidth Exceeded'); } - // Check the display specific limit next. + // Get the display + /** @var \Xibo\Entity\Display $display */ $display = $container->get('displayFactory')->getById($displayId); + + // Check it is still authorised. + if ($display->licensed == 0) { + throw new NotFoundException(__('Display unauthorised')); + } + + // Check the display specific limit next. $usage = 0; if ($container->get('bandwidthFactory')->isBandwidthExceeded( $display->bandwidthLimit, @@ -283,6 +291,15 @@ exit; } + // Get the display + /** @var \Xibo\Entity\Display $display */ + $display = $container->get('displayFactory')->getById($tokenEvent->getDisplayId()); + + // Check it is still authorised. + if ($display->licensed == 0) { + throw new NotFoundException(__('Display unauthorised')); + } + // Check the widgetId is permissible, and in required files for the display. /** @var \Xibo\Entity\RequiredFile $file */ $file = $container->get('requiredFileFactory')->getByDisplayAndWidget(