From 5b1e46715ac4a76ae067d2f1a1301e9f5fc670b9 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 2 May 2012 02:26:41 +0200 Subject: [PATCH] Fixed create of new users. --- app/models/user.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 8662bcf4f..3a49d1c34 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -225,6 +225,12 @@ Your #{config.product_name} Team private def check_geo + # geo update if no user exists + if !self.id + self.geo_update + return + end + location = ['street', 'zip', 'city', 'country'] # check if geo update is needed