Skip to content

Commit

Permalink
Merge pull request #460 from pimcore/permission
Browse files Browse the repository at this point in the history
Fields not set when using create mutation
  • Loading branch information
weisswurstkanone committed Jan 18, 2022
2 parents d3b0abd + 0d9e076 commit ce5d758
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/WorkspaceHelper.php
Expand Up @@ -280,7 +280,9 @@ public static function isAllowed($element, Configuration $configuration, string
$parent = $parent->getParent();
}
}
$parentIds[] = $element->getId();
if ($element->getId()) {
$parentIds[] = $element->getId();
}

try {
$db = Db::get();
Expand Down

0 comments on commit ce5d758

Please sign in to comment.