diff --git a/src/Forms/GridField/GridFieldAddByDBField.php b/src/Forms/GridField/GridFieldAddByDBField.php index ff5509e3..95613057 100644 --- a/src/Forms/GridField/GridFieldAddByDBField.php +++ b/src/Forms/GridField/GridFieldAddByDBField.php @@ -234,6 +234,6 @@ public function getHTMLFragments($gridField) $forTemplate->Fields->push($textField); $forTemplate->Fields->push($addAction); - return [$this->targetFragment => $forTemplate->renderWith(self::class)]; + return [$this->targetFragment => $forTemplate->renderWith(GridFieldAddByDBField::class)]; } } diff --git a/src/Model/Blog.php b/src/Model/Blog.php index d3aeec91..c843997f 100644 --- a/src/Model/Blog.php +++ b/src/Model/Blog.php @@ -475,7 +475,7 @@ public function canEditEditors($member = null) return $extended; } - return Permission::checkMember($member, self::MANAGE_USERS); + return Permission::checkMember($member, Blog::MANAGE_USERS); } /** @@ -499,7 +499,7 @@ public function canEditWriters($member = null) return true; } - return Permission::checkMember($member, self::MANAGE_USERS); + return Permission::checkMember($member, Blog::MANAGE_USERS); } /** @@ -523,7 +523,7 @@ public function canEditContributors($member = null) return true; } - return Permission::checkMember($member, self::MANAGE_USERS); + return Permission::checkMember($member, Blog::MANAGE_USERS); } /**