Commit 6736c36dea7396555087da22fe45f001a289a944
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'api' into stable
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/v1/articles.rb
@@ -62,7 +62,7 @@ module Noosfero | @@ -62,7 +62,7 @@ module Noosfero | ||
62 | post ':id/children' do | 62 | post ':id/children' do |
63 | 63 | ||
64 | parent_article = environment.articles.find(params[:id]) | 64 | parent_article = environment.articles.find(params[:id]) |
65 | - return forbidden! unless current_person.can_post_content?(parent_article.profile) | 65 | + return forbidden! unless parent_article.allow_create?(current_person) |
66 | 66 | ||
67 | klass_type= params[:content_type].nil? ? 'TinyMceArticle' : params[:content_type] | 67 | klass_type= params[:content_type].nil? ? 'TinyMceArticle' : params[:content_type] |
68 | #FIXME see how to check the article types | 68 | #FIXME see how to check the article types |