[TYPO3-dev] Re: [TYPO3-core] TYPO3 6.0 and 6.1 patchlevel releases tomorrow
Gerrit Mohrmann
gmohrmann at gmx.de
Tue Sep 10 15:53:10 CEST 2013
For Webdav I initialize an BackendUser with
$GLOBALS['BE_USER'] = t3lib_div::makeInstance('t3lib_tsfeBeUserAuth')
<...>
//Get the fileMounts:
$GLOBALS['BE_USER']->fetchGroupData();
$storages = $GLOBALS['BE_USER']->getFileStorages();
foreach ($storages as $storageObject) {
$storageMounts = $storageObject->getFileMounts();
if (count($storageMounts)) {
foreach ($storageMounts as $storageMountInfo) {
$fileMounts[] = array(
'path' => $storageMountInfo['folder']->getPublicUrl(),
'name' => $storageMountInfo['title'],
);
}
}
}
It's fine bevor the security fix, after it is broken. When debuging I can see the Storage but not the Filemounts.
Permissions are set in UserGroupTS and for testing in UserTS too:
permissions.file.default {
addFile = 1
..
}
permissions.file.storage.1 {
addFile = 1
..
}
Or have I todo more to see the Filemounts again?
Issue: http://forge.typo3.org/issues/51831
More information about the TYPO3-dev
mailing list