Commit 9cd3e675bd8fe5f0d168ad6991ebb103c139aa95
1 parent
e702b4c7
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
change user for person
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/helpers.rb
@@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
57 | 57 | ||
58 | def find_article(articles, id) | 58 | def find_article(articles, id) |
59 | article = articles.find(id) | 59 | article = articles.find(id) |
60 | - article.display_to?(current_user) ? article : forbidden! | 60 | + article.display_to?(current_person) ? article : forbidden! |
61 | end | 61 | end |
62 | 62 | ||
63 | def post_article(asset, params) | 63 | def post_article(asset, params) |