Commit eb7055ed authored by Marc Bastian Heinrichs's avatar Marc Bastian Heinrichs Committed by Frank Nägler
Browse files

[BUGFIX] Follow-up for cleanup FAL exception messages

Fixes a fatal error introduced on cleaning up the exception
messages.

Resolves: #67462
Relates: #64613
Releases: master
Change-Id: Ia1911d56a39283a32b591bc051b0e95292ced206
Reviewed-on: http://review.typo3.org/40247


Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Frank Nägler's avatarFrank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler's avatarFrank Nägler <frank.naegler@typo3.org>
parent 4f05b1ed
......@@ -911,7 +911,7 @@ class ResourceStorage implements ResourceStorageInterface {
}
// Check if user is allowed to rename
if (!$this->checkFileActionPermission('rename', $file)) {
throw new Exception\InsufficientUserPermissionsException('You are not allowed to rename files. File given."' . $file . '"', 1319219351);
throw new Exception\InsufficientUserPermissionsException('You are not allowed to rename files. File given: "' . $file->getName() . '"', 1319219351);
}
// Check if the user is allowed to write to folders
// Although it would be good to check, we cannot check here if the folder actually is writable
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment