Feature #22249 » 13763_v2.patch
t3lib/class.t3lib_userauthgroup.php (working copy) | ||
---|---|---|
1526 | 1526 |
} |
1527 | 1527 |
} |
1528 | 1528 | |
1529 |
// Patch 13763 to allow for users file mounts to be in draft workspace |
|
1530 |
// Admin users has the base fileadmin dir mounted |
|
1531 |
if ($this->isAdmin() && $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir']) { |
|
1532 |
$this->addFileMount($GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'], '', PATH_site.$GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'], 0, ''); |
|
1533 |
} |
|
1534 | ||
1535 |
$this->dataLists['filemount_list'] = t3lib_div::uniqueList($this->dataLists['filemount_list']); |
|
1536 |
error_log(print_r($this->dataLists['filemount_list'],true)); |
|
1537 |
if ($this->dataLists['filemount_list']) { |
|
1538 |
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'sys_filemounts', 'deleted=0 AND hidden=0 AND pid=0 AND uid IN ('.$this->dataLists['filemount_list'].')'); |
|
1539 |
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { |
|
1540 |
$this->addFileMount($row['title'], $row['path'], $row['path'], $row['base']?1:0, ''); |
|
1541 |
} |
|
1542 |
} |
|
1543 |
// End of Patch 13763 |
|
1544 | ||
1529 | 1545 |
if ($allowed_languages = $this->getTSConfigVal('options.workspaces.allowed_languages.'.$this->workspace)) { |
1530 | 1546 |
$this->groupData['allowed_languages'] = $allowed_languages; |
1531 | 1547 |
$this->groupData['allowed_languages'] = t3lib_div::uniqueList($this->groupData['allowed_languages']); |
... | ... | |
1827 | 1843 |
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_userauthgroup.php']); |
1828 | 1844 |
} |
1829 | 1845 | |
1830 |
?> |
|
1846 |
?> |
- « Previous
- 1
- 2
- Next »