Bug #37812
closedAdmin has no rights to update a file
100%
Description
Hello Core-Team,
I just have installed TYPO3 6.0 for testing FAL. There are no problems with creating files and folders but I can't modify the files content. I don't have permissions to edit this file.
I have searched a very long time because FAL is pretty hugh. I found out that you define some default permissions for BE-Users. It's an Array containing an element called "editFile", but it will be checked against "updateFile". So please update your code to "editFile", or change the element within the array to "updateFile".
For now I have added following line to BE-Userrecords TSconfig:
permissions.file.storage.1.updateFile = 1
It doesn't work, because the returning value of getTSconfig is an Array containing always to elements "value" and "properties". This is what you do:
$storageFilePermissions = $this->getTSConfig('permissions.file.storage.' . $storageObject->getUid());
it should be:
$tsConfigPath = $this->getTSConfig('permissions.file.storage.' . $storageObject->getUid()); $storageFilePermissions = $tsConfigPath['properties'];
Now the both arrays are merged correctly.
Stefan
Updated by Gerrit Code Review about 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14257
Updated by Gerrit Code Review about 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14257
Updated by Gerrit Code Review about 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14257
Updated by Steffen Ritter about 12 years ago
- Target version changed from 6.0.0-alpha2 to 6.0.0-beta2
Updated by Gerrit Code Review about 12 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14257
Updated by Anonymous about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cfd107268c3173f1fe8e05027bc7d049e9293fff.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed