Bug #33147
closed
Missing 'Copy' function although user permissions exists
Added by Maik no-lastname-given almost 13 years ago.
Updated about 7 years ago.
Description
Hi there!
I've created some template pages so users are able to create their personal page in short time.
I set the permission "Show page: Show/Copy page and content.", all others are disabled.
Now the users can copy&paste the pages in page and list view, but not in the pagetree.
When clicking on the page icon (pagetree), there is no "Page Actions" available in the menu. It doesn't appear between History and Branch Actions.
After extending the permission f.e. with "New pages", the Page Actions sub-menu is visible with the options New and Copy...
Bug or Feature? ;-)
Tested with Typo3 4.5.11/PHP 5.2 and Typo3 4.7.0alpha2/PHP 5.3
How to reproduce?
1. create an editor group and put some user in it
2. set page access permissions for the new group to "Show page" and disable the other 4
3. switch to the user and try to copy the page via pagetree
best regards,
Maik
I can confirm this bug. Tested with TYPO3 4.7.1 PHP 5.3
- Target version set to 7.4 (Backend)
- Is Regression set to No
- Target version changed from 7.4 (Backend) to 7.5
- Target version changed from 7.5 to 8 LTS
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
Hi,
Thank you but can you merge this also in the TYPO3 6 LTS branch?
I've tested this an it works.
/**
* Checks if the page is allowed to be copied
*
* @return boolean
*/
public function canBeCopied() {
return (
//$this->canCreate($this->record)
$GLOBALS['BE_USER']->doesUserHaveAccess($this->record, 1)
&& !VersionState::cast($this->record['t3ver_state'])->equals(VersionState::DELETE_PLACEHOLDER)
&& $GLOBALS['BE_USER']->checkLanguageAccess(0)
);
}
- Status changed from Resolved to Closed
Also available in: Atom
PDF