Commit 0beac3d
committed
[BUGFIX] Allow to visit pages if editor has no access
When an editor (non-admin) is logged in in the backend,
and is logged into the frontend with a usergroup as well,
the user is not allowed to view to a access-restricted page
for which the BE admin has no access - even though
the frontend is accessible with the regular fe permission rights
of the FE usergroup in the session.
This happens because the Preview simulation takes place
in the Frontend (PreviewSimulator middleware) first,
then evaluates that a preview should be shown (due to a
ADMCMD_simUser=1 for example), and then checks - once
the page is resolved - if the BE editor has access to the
page - because he/she is logged in.
In this case, when a BE editor is logged in and has no
permission to actually see the page due to BE restrictions,
it is ADDITIONALLY checked now if the record can be
previewed with the current Context information via
the AccessVoter.
Resolves: #101589
Resolves: #105567
Resolves: #105866
Related: #97176
Releases: main, 13.4, 12.4
Change-Id: Ic78792eb6892e9af1ac4632ca777f3210ee34d2d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/88762
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Andreas Kienast <akienast@scripting-base.de>
Tested-by: Andreas Kienast <akienast@scripting-base.de>
Tested-by: core-ci <typo3@b13.com>1 parent 0a5ac4d commit 0beac3d
File tree
1 file changed
+11
-3
lines changed- typo3/sysext/frontend/Classes/Page
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
534 | | - | |
535 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
536 | 544 | | |
537 | 545 | | |
538 | 546 | | |
| |||
0 commit comments