FIX: quote whole post button was broken

This commit is contained in:
Neil Lalonde
2014-04-30 14:21:43 -04:00
parent 5fda4a613d
commit dc0a758ec6
2 changed files with 30 additions and 16 deletions

View File

@@ -181,7 +181,7 @@ class PostSerializer < BasicPostSerializer
end
def include_raw?
@add_raw.present? && (scope.user.try(:staff?) || yours)
@add_raw.present? && (!object.hidden || scope.user.try(:staff?) || yours)
end
def include_link_counts?