diff --git a/app/models/post_flag.rb b/app/models/post_flag.rb index 480c19e78..9ba8378e7 100644 --- a/app/models/post_flag.rb +++ b/app/models/post_flag.rb @@ -79,7 +79,11 @@ class PostFlag < ActiveRecord::Base module ApiMethods def hidden_attributes - super + [:creator_id] + list = [] + unless CurrentUser.is_moderator? + list += [:creator_id] + end + super + list end def serializable_hash(options = {})