[TASK] Respect editlock of pages in inline editing
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / PageLayoutController.php
index 74f4423..b2f41ef 100755 (executable)
@@ -1408,7 +1408,7 @@ class PageLayoutController {
         * @return bool
         */
        public function pageIsNotLockedForEditors() {
         * @return bool
         */
        public function pageIsNotLockedForEditors() {
-               return !($this->pageinfo['editlock'] && ($this->CALC_PERMS & Permission::PAGE_EDIT));
+               return $this->getBackendUser()->isAdmin() || !($this->CALC_PERMS & Permission::PAGE_EDIT && $this->pageinfo['editlock']);
        }
 
        /**
        }
 
        /**