Skip to content

Conversation

@gradinarufelix
Copy link
Contributor

Backport of #419 to Neos 8.x

This wraps the getNodeByIdentifier() call in withoutAuthorizationChecks() to prevent workspace-related authorization checks from failing when indexing nodes that exist in different workspaces.

Resolves the error: Node workspace "user-xxx" not found in allowed workspaces (live), this could result from a detached workspace entity in the context.

…her workspaces

Backport of Flowpack#419 to Neos 8.x

This wraps the getNodeByIdentifier() call in withoutAuthorizationChecks()
to prevent workspace-related authorization checks from failing when
indexing nodes that exist in different workspaces.

Resolves the error: Node workspace "user-xxx" not found in allowed
workspaces (live), this could result from a detached workspace entity
in the context.
…k result

Flow's SecurityContext::withoutAuthorizationChecks() has a void return type
and does not return the callback result. The previous implementation assumed
the return value would be passed through, causing $nodeFromContext to always
be null and preventing any nodes from being indexed.

This fix captures the result via a reference variable instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant