]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/users/_user.json.jbuilder
Merge remote-tracking branch 'upstream/pull/3373'
[rails.git] / app / views / api / users / _user.json.jbuilder
index 8423353dd3a1af1f8e534e0bc8e659ef12cb3a2d..7659e4e110c5b40667cb681b21fb116f48295913 100644 (file)
@@ -65,5 +65,7 @@ json.user do
         json.count user.sent_messages.size
       end
     end
         json.count user.sent_messages.size
       end
     end
+
+    json.email user.email if scope_enabled?(:read_email)
   end
 end
   end
 end