[BUGFIX] PageLayoutView: Honor page permissions in getTable_tt_content() 86/43186/3
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 11 Sep 2015 08:21:32 +0000 (10:21 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 11 Sep 2015 09:45:19 +0000 (11:45 +0200)
commit15b328f7e357db4681a32ed7e981afdbe3ec7d9b
tree002ad6d5708e134842b20da059de9b886697924b
parent9ffe2045aa186a188d2f852c3307559d0fd50397
[BUGFIX] PageLayoutView: Honor page permissions in getTable_tt_content()

The call to readPageAccess() expects a SQL fragment to check the page
permissions but the raw integer value for the access rights was passed.
The resulting invalid part of the SQL statement (for example `AND 31`)
is ignored by MySQL but results in the permissions not being checked.

Translate the page permissions to the expected SQL fragment for
readPageAccess().

Resolves: #69660
Releases: master
Change-Id: I51a92948dd754410f128683892a9312d97067ea3
Reviewed-on: http://review.typo3.org/43186
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/View/PageLayoutView.php