Bug #90961
closedPaste record icon missing if user or usergroup doesn't have page permission "Edit Page"
100%
Description
When a non-admin user clicks on the contextual menu of a content by choosing "size" or "copy" and the page does not have permission number (3) "Edit page", paste record icon is missing.
Updated by Robert von Hackwitz over 4 years ago
I think problem is in typo3/sysext/backend/classes/PageLayoutView.php line 1239 and following:
if (!empty($elFromTable) && $this->isPageEditable()) { $pasteItem = substr(key($elFromTable), 11); $pasteRecord = BackendUtility::getRecord('tt_content', (int)$pasteItem); $pasteTitle = $pasteRecord['header'] ? $pasteRecord['header'] : $pasteItem; $copyMode = $this->clipboard->clipData['normal']['mode'] ? '-' . $this->clipboard->clipData['normal']['mode'] : ''; $addExtOnReadyCode = ' top.pasteIntoLinkTemplate = ' . $this->tt_content_drawPasteIcon($pasteItem, $pasteTitle, $copyMode, 't3js-paste-into', 'pasteIntoColumn') . '; top.pasteAfterLinkTemplate = ' . $this->tt_content_drawPasteIcon($pasteItem, $pasteTitle, $copyMode, 't3js-paste-after', 'pasteAfterRecord') . ';'; } else { $addExtOnReadyCode = ' top.pasteIntoLinkTemplate = \'\'; top.pasteAfterLinkTemplate = \'\';'; }
Rendering of the icon depends on $this->isPageEditable(), perhaps it should be:
if (!empty($elFromTable) && $this->getBackendUser()->doesUserHaveAccess($this->pageinfo, Permission::CONTENT_EDIT)) {
Updated by Gerrit Code Review over 4 years ago
- Status changed from New 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/c/Packages/TYPO3.CMS/+/64105
Updated by Gerrit Code Review over 4 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/c/Packages/TYPO3.CMS/+/64105
Updated by Gerrit Code Review over 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64105
Updated by Oliver Bartsch over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7077be752e5e3332ea8945f15459c6b150753298.
Updated by Gerrit Code Review over 4 years ago
- Status changed from Closed to Under Review
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64282
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64282
Updated by Gerrit Code Review over 4 years ago
Patch set 3 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64282
Updated by Oliver Bartsch over 4 years ago
- Status changed from Under Review to Resolved
Applied in changeset 5457c5b593ae8cf770bdbdcccee53871e94963b8.