Bug #88321
closedPermission Problem with Localizied Mountpoint
0%
Description
After translationg my Main-Page, which is also my Mountpoint for users, i got a strange error.
Everytime a user tries to edit the page, he got an error.
Attempt to modify record '%s' (%s) without permission. Or non-existing page.
The problem occours only on the mountpoint and for all languages. Even when editing the main language. I guess because of the intecreation of the table pages_lanugages_overlay.
My workaround:
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
in the function isInWebMount (Line 389)
I changed this
// Check if input id is an offline version page in which case we will map id to the online version:
$checkRec = BackendUtility::getRecord('pages', $id, 'pid,t3ver_oid');
if ($checkRec['pid'] == -1) {
$id = (int)$checkRec['t3ver_oid'];
}
to that
// Check if input id is an offline version page in which case we will map id to the online version:
$checkRec = BackendUtility::getRecord('pages', $id, 'pid,t3ver_oid,l10n_parent');
if ($checkRec['pid'] == -1) {
$id = (int)$checkRec['t3ver_oid'];
}
elseif ($checkRec['l10n_parent'] > 0) {
$id = (int)$checkRec['l10n_parent'];
}
And solved my problem. I guess it is a problem with typo3 and not of my configuration, but feel free to test it.
Updated by Sebastian Schramm over 5 years ago
- Category changed from Backend User Interface to Authentication
Updated by Christian Eßl about 5 years ago
Looks like a duplicate of: https://forge.typo3.org/issues/87985
(which has already been fixed)
Updated by Christian Eßl about 5 years ago
- Related to Bug #87985: Permission issue on root page for non-admins on multilanguage environment added
Updated by Benni Mack almost 5 years ago
- Status changed from New to Closed
I agree, we've fixed this now. If you feel otherwise, let me know, and I'll reopen the issue.