Skip to content

Commit 703f13a

Browse files
[fix] no 'update' perm needed for 'create' dataobject operation (#976)
1 parent b786d4a commit 703f13a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GraphQL/Mutation/MutationType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public function buildDataObjectMutations(&$config = [], $context = [])
628628
$newInstance->setType($args['type']);
629629
}
630630

631-
$resolver = $me->getUpdateObjectResolver($processors, $localeService, $newInstance, $me->omitPermissionCheck);
631+
$resolver = $me->getUpdateObjectResolver($processors, $localeService, $newInstance, true);
632632

633633
$returnValue = call_user_func_array($resolver, [$value, $args, $context, $info]);
634634
if (isset($returnValue['success']) === true &&

0 commit comments

Comments
 (0)