We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ee352b commit 8744686Copy full SHA for 8744686
backend/app/Http/Actions/Orders/GetOrderAction.php
@@ -3,6 +3,7 @@
3
namespace HiEvents\Http\Actions\Orders;
4
5
use HiEvents\DomainObjects\AttendeeDomainObject;
6
+use HiEvents\DomainObjects\EventDomainObject;
7
use HiEvents\DomainObjects\OrderItemDomainObject;
8
use HiEvents\DomainObjects\QuestionAndAnswerViewDomainObject;
9
use HiEvents\Http\Actions\BaseAction;
@@ -21,6 +22,8 @@ public function __construct(OrderRepositoryInterface $orderRepository)
21
22
23
public function __invoke(int $eventId, int $orderId): JsonResponse
24
{
25
+ $this->isActionAuthorized($eventId, EventDomainObject::class);
26
+
27
$order = $this->orderRepository
28
->loadRelation(OrderItemDomainObject::class)
29
->loadRelation(AttendeeDomainObject::class)
0 commit comments