Feature #17024 » typo3-restrictTree.diff
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');
|
- « Previous
- 1
- 2
- 3
- 4
- Next »