From 4540a51a8f49f0d204e2ae1985a3e730d13756d9 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 11 Jul 2013 11:18:25 -0400 Subject: [PATCH] FIX: deleted_by wasn't showing up on refresh --- app/serializers/post_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/post_serializer.rb b/app/serializers/post_serializer.rb index f768a252d..53b25b6f0 100644 --- a/app/serializers/post_serializer.rb +++ b/app/serializers/post_serializer.rb @@ -123,7 +123,7 @@ class PostSerializer < BasicPostSerializer end def include_deleted_by? - staff? && object.deleted_by.present? + scope.is_staff? && object.deleted_by.present? end # Summary of the actions taken on this post