]> git.openstreetmap.org Git - rails.git/commitdiff
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 e976954206f08fe892c2405ecc492fdc7fdc22c8..2b304f53ca2e618efa45a2a887c9eb6c831c9339 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