Skip to content

Commit

Permalink
fix: Removed NodeTypeInterface from Node constructor, Removed ThemeRo…
Browse files Browse the repository at this point in the history
…utesLoader.php
  • Loading branch information
roadiz-ci committed Mar 15, 2024
1 parent d410cf8 commit 4c8bc4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controllers/Nodes/NodesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ public function addAction(Request $request, int $nodeTypeId, ?int $translationId
throw new ResourceNotFoundException(sprintf('Translation #%s does not exist.', $translationId));
}

$node = new Node($type);
$node = new Node();
$node->setNodeType($type);

$chroot = $this->nodeChrootResolver->getChroot($this->getUser());
if (null !== $chroot) {
// If user is jailed in a node, prevent moving nodes out.
Expand Down

0 comments on commit 4c8bc4e

Please sign in to comment.