[FEATURE] Add possibility to use session data in TS conditions 10/55310/15
authorWolfgang Klinger <wolfgang@wazum.com>
Tue, 9 Jan 2018 19:17:56 +0000 (20:17 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 14 Feb 2018 09:43:15 +0000 (10:43 +0100)
commitc924fbdab76263fc5121c9073f51b0d63b129d64
tree6c56367478d563eb5991bd2fb49069aefb7b0d60
parente514f4391edf7eda9406d4f2739ace30c2153e77
[FEATURE] Add possibility to use session data in TS conditions

Since the session API has been adjusted it is no longer possible
to access the (now protected) sesData property of the fe_user object.
Using TSFE:fe_user|sesData|foo|bar in a TS condition will trigger
a deprecation log entry.

Instead a cleaner approach is now available:
 [globalVar = session:foo|bar = 1234567]

Resolves: #83506
Releases: master
Change-Id: Idbb079334186eac1dfe062a71a601e556a9bd247
Reviewed-on: https://review.typo3.org/55310
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Deprecation-83506-DeprecateFeUserSesDataCondition.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-83506-RetrieveSessionDataInTSConditions.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php
typo3/sysext/frontend/Tests/Unit/Configuration/TypoScript/ConditionMatching/ConditionMatcherTest.php