mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #172 from flashbackzoo/pulls/protected-isauthor
Make BlogPost::isAuthor public
This commit is contained in:
commit
d58b376bf1
@ -72,7 +72,7 @@ class BlogPost extends Page {
|
||||
* @param Member $member
|
||||
* @return boolean
|
||||
*/
|
||||
protected function isAuthor($member) {
|
||||
public function isAuthor($member) {
|
||||
if(!$member || !$member->exists()) return false;
|
||||
|
||||
$list = $this->Authors();
|
||||
|
Loading…
Reference in New Issue
Block a user