diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index abb2ab52f..f071107ee 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -931,6 +931,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid * @return boolean True if the current user can publish this page. */ public function canPublish($member = null) { + return false; if(!$member || !(is_a($member, 'Member')) || is_numeric($member)) $member = Member::currentUser(); if($member && Permission::checkMember($member, "ADMIN")) return true; diff --git a/forms/TableListField.php b/forms/TableListField.php index 310658186..8345b4b04 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -957,7 +957,7 @@ JS $className = isset($item['RecordClassName']) ? $item['RecordClassName'] : $item['ClassName']; $item = new $className($item); } - $fieldItem = new $this->itemClass($item, $this); + $fieldItem = new $this->itemClass($item, $this, null); $fields = $fieldItem->Fields(false); $columnData = array();