Skip to content

Commit 8744686

Browse files
committed
Add missing isActionAuthorized call to get order action
1 parent 9ee352b commit 8744686

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/app/Http/Actions/Orders/GetOrderAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace HiEvents\Http\Actions\Orders;
44

55
use HiEvents\DomainObjects\AttendeeDomainObject;
6+
use HiEvents\DomainObjects\EventDomainObject;
67
use HiEvents\DomainObjects\OrderItemDomainObject;
78
use HiEvents\DomainObjects\QuestionAndAnswerViewDomainObject;
89
use HiEvents\Http\Actions\BaseAction;
@@ -21,6 +22,8 @@ public function __construct(OrderRepositoryInterface $orderRepository)
2122

2223
public function __invoke(int $eventId, int $orderId): JsonResponse
2324
{
25+
$this->isActionAuthorized($eventId, EventDomainObject::class);
26+
2427
$order = $this->orderRepository
2528
->loadRelation(OrderItemDomainObject::class)
2629
->loadRelation(AttendeeDomainObject::class)

0 commit comments

Comments
 (0)