Commit 4ea253c
committed
BUGFIX: Find nodes in CR without security checks to allow nodes of other workspaces
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.1 parent 476d3ee commit 4ea253c
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
148 | 155 | | |
149 | 156 | | |
150 | 157 | | |
| |||
270 | 277 | | |
271 | 278 | | |
272 | 279 | | |
273 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
274 | 285 | | |
275 | 286 | | |
276 | 287 | | |
| |||
0 commit comments