Project

General

Profile

Actions

Bug #37812

closed

Admin has no rights to update a file

Added by Stefan Froemken almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2012-06-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

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


Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #39860: Not possible to save edited files in fileadmin (TYPO3 6.0 Alpha3)ClosedAndreas Wolf2012-08-16

Actions
Has duplicate TYPO3 Core - Bug #39949: Local file not editable (as admin) - User right 'edit' vs. 'update'ClosedAndreas Wolf2012-08-19

Actions
Actions

Also available in: Atom PDF