Commit 9cd3e675bd8fe5f0d168ad6991ebb103c139aa95

Authored by Leandro Santos
1 parent e702b4c7

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 57  
58 58 def find_article(articles, id)
59 59 article = articles.find(id)
60   - article.display_to?(current_user) ? article : forbidden!
  60 + article.display_to?(current_person) ? article : forbidden!
61 61 end
62 62  
63 63 def post_article(asset, params)
... ...