Feature #92562

Resolve frontend user groups directly after fe_user initialization

Added by Benni Mack 9 days ago. Updated 4 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Authentication
Target version:
Start date:
2020-10-14
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Related issues

Blocked by TYPO3 Core - Bug #92489: Calling $contentObjectRenderer->getTreeList() in eID returns empty list Resolved 2020-10-06

Associated revisions

Revision ee7667f5 (diff)
Added by Benni Mack 4 days ago

[!!!][FEATURE] Always initialize frontend groups after FE user

In previous TYPO3 versions (due to historic reasons) the frontend
groups were always resolved within TSFE when a page and the
rootline was resolved.

However, this left the actual Frontend User, which is initialized
at the very beginning of a frontend request, in an incomplete state:
A user was (correctly) found and "logged in", but the groups were
resolved at a later point.

This was due to the fact that the Admin Panel allowed to
"include hidden records" which also considered fe_groups,
and thus be set later-on.

This change now moved the resolving of the groups (and setting
the right frontend.user aspect) right after the user resolving.

This means that the groups are now available much earlier, and not
bound to the TSFE instance anymore, allowing to use Middlewares much
more professionally without depending on TSFE for custom Routing / APIs.

Future options:
It would even be possible to filter out PageRouter pages that are
not available, which would make the Router itself faster.

Resolves: #92562
Releases: master
Change-Id: Ia522697433049b0e549f3c65caf6757053ff37e1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66066
Tested-by: TYPO3com <>
Tested-by: Anja Leichsenring <>
Tested-by: Christian Kuhn <>
Reviewed-by: Markus Klein <>
Reviewed-by: Anja Leichsenring <>
Reviewed-by: Christian Kuhn <>

History

#1 Updated by Gerrit Code Review 9 days ago

  • Status changed from New to Under Review

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66066

#2 Updated by Gerrit Code Review 8 days ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66066

#3 Updated by Markus Klein 8 days ago

  • Blocked by Bug #92489: Calling $contentObjectRenderer->getTreeList() in eID returns empty list added

#4 Updated by Benni Mack 4 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF