Commit 1ba7288
[BUGFIX] Respect
With #106382 DataHandler permission check handling has been
streamlined and missed to keep respecting related TCA option
`ignoreRootLevelRestriction` for records handled and saved
on rootLevel (`pid=0`). For example FAL file and file metadata
are stored on `pid=0`, which are no longer editable or
translatable by casual editors.
Based on the change, empty page record are now passed down to
the BE_user `isInWebMount()` throwing an exception because no
`uid` is provided in the empty array.
This change modifies some places to reintroduce checks for the
TCA option `ignoreRootLevelRestriction` when record pid is zero,
not calling `isInWebMount()` with an empty page record.
Resolves: #106569
Related: #106382
Releases: main, 13.4
Change-Id: Ic602060c02a2188520e8d0750ddabb1c5af601e9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89172
Reviewed-by: André Buchmann <andy.schliesser@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: André Buchmann <andy.schliesser@gmail.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>ignoreRootLevelRestriction for pid=0 records1 parent eb047b6 commit 1ba7288
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
887 | 889 | | |
888 | 890 | | |
889 | 891 | | |
| |||
3460 | 3462 | | |
3461 | 3463 | | |
3462 | 3464 | | |
3463 | | - | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
3464 | 3468 | | |
3465 | 3469 | | |
3466 | 3470 | | |
| |||
4793 | 4797 | | |
4794 | 4798 | | |
4795 | 4799 | | |
4796 | | - | |
4797 | | - | |
| 4800 | + | |
| 4801 | + | |
| 4802 | + | |
4798 | 4803 | | |
4799 | 4804 | | |
4800 | 4805 | | |
| |||
7187 | 7192 | | |
7188 | 7193 | | |
7189 | 7194 | | |
7190 | | - | |
7191 | | - | |
| 7195 | + | |
| 7196 | + | |
7192 | 7197 | | |
7193 | 7198 | | |
7194 | 7199 | | |
| |||
0 commit comments