Project

General

Profile

Feature #17024 » typo3-restrictTree.diff

Kai Habermann, 2011-10-26 14:05

View differences:

class.t3lib_tree_pagetree_dataprovider.php 2011-10-26 13:48:13.000000000 +0200
* @return string
*/
protected function getWhereClause($id, $searchFilter = '') {
$where = $GLOBALS['BE_USER']->getPagePermsClause(1) .
if ($GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.restrictTree')) {
$where = $GLOBALS['BE_USER']->getPagePermsClause(1) .
' AND '.$GLOBALS['BE_USER']->getPagePermsClause(2) .
t3lib_BEfunc::deleteClause('pages') .
t3lib_BEfunc::versioningPlaceholderClause('pages');
} else {
$where = $GLOBALS['BE_USER']->getPagePermsClause(1) .
t3lib_BEfunc::deleteClause('pages') .
t3lib_BEfunc::versioningPlaceholderClause('pages');
}
if (is_numeric($id) && $id >= 0) {
$where .= ' AND pid= ' . $GLOBALS['TYPO3_DB']->fullQuoteStr(intval($id), 'pages');
(4-4/4)