Project

General

Profile

Actions

Bug #71243

closed

Non-Admins can't edit content

Added by Markus Klein over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Category:
Backend User Interface
Target version:
Start date:
2015-11-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

After having the UI improvement to hide all actions which can't be taken by a user, we now see the situtation that users aren't able to edit content at all.

The reason is wrong permission evaluation in the Page module.

Setup and permissions
Rootpage (owner: admin, group: editors; group-perms: show page, edit content)
 - page 1 (owner: user; all perms)
   - page 2 (owner: user; all perms)

The "user" has the rootpage as webmount.

Analysis

The code in typo3/sysext/backend/Classes/View/PageLayoutView.php:421 evaluates the page permissions. It uses ext_CALC_PERMS which is 31 (all permissions). The issue is that this line will check if the current page is part of the webmounts of the user, where the rootline selection is using the permissions as specificed. Since the user does not have 31 permission on the root page, which effectively causes the rootpage not to be part of the rootline for (e.g. page 2) and hence the isInWebmount() check returns false finally causing the pageinfo to be false.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #71148: Editors can not create content elements on new pagesClosed2015-10-30

Actions
Related to TYPO3 Core - Bug #76036: Page module lacks "new content" button if page has no edit permission for groupClosed2016-05-03

Actions
Actions #1

Updated by Markus Klein over 8 years ago

  • Assignee changed from Markus Klein to Mathias Schreiber
Actions #2

Updated by Gerrit Code Review over 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44476

Actions #3

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44476

Actions #4

Updated by Wolfgang Wagner over 8 years ago

Is it possible, that this issue has something to with that? https://forge.typo3.org/issues/71148

Actions #5

Updated by Mathias Schreiber over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF