From acaeee82e7ee6e420bb2d22d5c1d0b68e531c1da Mon Sep 17 00:00:00 2001 From: Nicolaas Date: Fri, 26 Mar 2021 10:28:13 +1300 Subject: [PATCH] MINOR: restrict the available authors, because right now any Member can be an author which causes big slowdowns for edge case only see: https://github.com/silverstripe/silverstripe-blog/issues/640 --- src/Model/BlogPost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/BlogPost.php b/src/Model/BlogPost.php index 77f36e43d..339b02cef 100644 --- a/src/Model/BlogPost.php +++ b/src/Model/BlogPost.php @@ -47,7 +47,7 @@ class BlogPost extends Page * given credit in the author field for blog posts * @var string|bool false or group code */ - private static $restrict_authors_to_group = false; + private static $restrict_authors_to_group = 'CMS_ACCESS_CMSMain'; /** * {@inheritDoc}