Bug #22097 » workspace-respect-user-filemount.patch
t3lib/class.t3lib_userauthgroup.php (working copy) | ||
---|---|---|
if ($this->workspace>0 && trim($this->workspaceRec['file_mountpoints'])!=='') {
|
||
// Processing filemounts
|
||
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'sys_filemounts', 'deleted=0 AND hidden=0 AND pid=0 AND uid IN ('.$GLOBALS['TYPO3_DB']->cleanIntList($this->workspaceRec['file_mountpoints']).')');
|
||
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'sys_filemounts', 'deleted=0 AND hidden=0 AND pid=0 AND uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($this->workspaceRec['file_mountpoints']) . ') AND uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($this->user['file_mountpoints']) . ')');
|
||
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
|
||
$this->addFileMount($row['title'], $row['path'], $row['path'], $row['base']?1:0, '');
|
||
}
|