Commit b1e8b783 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix blogpost public_feedback_allowed()

parent 9f1f5f48
...@@ -760,7 +760,10 @@ class ArtefactTypeBlogPost extends ArtefactType { ...@@ -760,7 +760,10 @@ class ArtefactTypeBlogPost extends ArtefactType {
} }
public function public_feedback_allowed() { public function public_feedback_allowed() {
return parent::get('commentsallowed'); // Comments are not allowed on posts when the blog has
// commentsallowed set to 0;
$parent = get_field('artefact', 'parent', 'id', $this->get('id'));
return get_field('artefact_blog_blog', 'commentsallowed', 'blog', $parent);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment