[BUGFIX] Show the copy option in the page browser contextual menu 81/46481/4
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 5 Mar 2016 17:34:35 +0000 (18:34 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 5 Mar 2016 17:36:39 +0000 (18:36 +0100)
Resolves: #33147
Releases: master, 7.6
Change-Id: I98c696eb58c759f6c50dbaf111556b86cffe0e93
Reviewed-on: https://review.typo3.org/46481
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/backend/Classes/Tree/Pagetree/PagetreeNode.php

index 8f034b6..a2e3954 100644 (file)
@@ -289,7 +289,7 @@ class PagetreeNode extends \TYPO3\CMS\Backend\Tree\ExtDirectNode
     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)
         );