app/models/decidim/blogs/post.rb in decidim-blogs-0.17.2 vs app/models/decidim/blogs/post.rb in decidim-blogs-0.18.0
- old
+ new
@@ -39,8 +39,13 @@
end
def official?
author.nil?
end
+
+ # Public: Whether the object can have new comments or not.
+ def user_allowed_to_comment?(user)
+ can_participate_in_space?(user)
+ end
end
end
end