Skip to content

Commit

Permalink
Merge pull request #306 from HiEventsDev/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
daveearley authored Dec 2, 2024
2 parents 014065d + 8744686 commit 6f78bc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/app/Http/Actions/Orders/GetOrderAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace HiEvents\Http\Actions\Orders;

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

public function __invoke(int $eventId, int $orderId): JsonResponse
{
$this->isActionAuthorized($eventId, EventDomainObject::class);

$order = $this->orderRepository
->loadRelation(OrderItemDomainObject::class)
->loadRelation(AttendeeDomainObject::class)
Expand Down

0 comments on commit 6f78bc8

Please sign in to comment.