Commit a66e7f348422d890bdd905170cd9b373665c6f24
1 parent
9cc7056d
Exists in
staging
and in
31 other branches
api: expose published attribute from article
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/noosfero/api/entities.rb
... | ... | @@ -196,6 +196,7 @@ module Noosfero |
196 | 196 | expose :archived, :documentation => {:type => "Boolean", :desc => "Defines if a article is readonly"} |
197 | 197 | expose :type |
198 | 198 | expose :comments, using: CommentBase, :if => lambda{|obj,opt| opt[:params] && ['1','true',true].include?(opt[:params][:show_comments])} |
199 | + expose :published | |
199 | 200 | end |
200 | 201 | |
201 | 202 | class Article < ArticleBase | ... | ... |