Commit 6a762aec3066c05831ac0e962c0c61e81ba3acfe
1 parent
e6a3eb71
Exists in
staging
and in
7 other branches
Fix logic of article editing
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/v1/articles.rb
... | ... | @@ -37,7 +37,7 @@ module Noosfero |
37 | 37 | |
38 | 38 | post ':id' do |
39 | 39 | article = environment.articles.find(params[:id]) |
40 | - return forbidden! if article.allow_edit?(current_person) | |
40 | + return forbidden! unless article.allow_edit?(current_person) | |
41 | 41 | article.update_attributes!(params[:article]) |
42 | 42 | present article, :with => Entities::Article, :fields => params[:fields] |
43 | 43 | end | ... | ... |