[TASK] Respect editlock of pages in inline editing
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Tree / Pagetree / DataProvider.php
index f4f1908..6f2b0d4 100644 (file)
@@ -161,6 +161,9 @@ class DataProvider extends \TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider {
                                } else {
                                        $subNode->setLeaf(!$this->hasNodeSubPages($subNode->getId()));
                                }
+                               if (!$GLOBALS['BE_USER']->isAdmin() && (int)$subpage['editlock'] === 1) {
+                                       $subNode->setLabelIsEditable(FALSE);
+                               }
                                $nodeCollection->append($subNode);
                        }
                }