User.consider_pd is boolean, so no need for double negation.
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 7 Sep 2016 09:59:00 +0000 (10:59 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 7 Sep 2016 09:59:00 +0000 (10:59 +0100)
app/views/user/api_read.builder

index e976954..2b304f5 100644 (file)
@@ -8,7 +8,7 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do
     end
     if @user && @user == @this_user
       xml.tag! "contributor-terms", :agreed => !!@this_user.terms_agreed,
-                                    :pd => !!@this_user.consider_pd
+                                    :pd => @this_user.consider_pd
     else
       xml.tag! "contributor-terms", :agreed => !!@this_user.terms_agreed
     end