Project

General

Profile

Actions

Bug #88321

closed

Permission Problem with Localizied Mountpoint

Added by Sebastian Schramm almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Authentication
Target version:
-
Start date:
2019-05-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #87985: Permission issue on root page for non-admins on multilanguage environmentClosed2019-03-22

Actions
Actions #1

Updated by Sebastian Schramm almost 5 years ago

  • Category changed from Backend User Interface to Authentication
Actions #2

Updated by Christian Eßl over 4 years ago

Looks like a duplicate of: https://forge.typo3.org/issues/87985
(which has already been fixed)

Actions #3

Updated by Christian Eßl over 4 years ago

  • Related to Bug #87985: Permission issue on root page for non-admins on multilanguage environment added
Actions #4

Updated by Benni Mack over 4 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.

Actions

Also available in: Atom PDF