]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Fix statistics script to work with 0.6 database schema.
[rails.git] / app / controllers / user_controller.rb
index 47c1cff9fbb4e259310601a8469c94eeaf28017d..553e841aa3658af2a3342a09a94be7391097bc44 100644 (file)
@@ -119,6 +119,9 @@ class UserController < ApplicationController
 
   def new
     @title = 'create account'
+    # The user is logged in already, so don't show them the signup page, instead
+    # send them to the home page
+    redirect_to :controller => 'site', :action => 'index' if session[:user]
   end
 
   def login