Skip to content

Commit

Permalink
MINOR: restrict the available authors, because right now any Member c…
Browse files Browse the repository at this point in the history
…an be an author which causes big slowdowns for edge case only

see: silverstripe#640
  • Loading branch information
sunnysideup authored Mar 25, 2021
1 parent 4a21824 commit acaeee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/BlogPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit acaeee8

Please sign in to comment.