summaryrefslogtreecommitdiff
path: root/users/app/controllers/users_controller.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-04 15:40:22 +0200
committerAzul <azul@leap.se>2014-04-04 15:40:22 +0200
commitaeb5d8cf8dc6329906f14bf4595a229e002691c1 (patch)
tree000f3137aeb711a4008dd58f930f9c6b7d9d0e65 /users/app/controllers/users_controller.rb
parent7b4f9ad334ec702449fdc683ea8fc312e06b2bd9 (diff)
redirect home when logged in visits /signup (#5446)
Diffstat (limited to 'users/app/controllers/users_controller.rb')
-rw-r--r--users/app/controllers/users_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index 6b32d49..c8e09b6 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -5,6 +5,7 @@
class UsersController < UsersBaseController
before_filter :require_login, :except => [:new]
+ before_filter :redirect_if_logged_in, :only => [:new]
before_filter :require_admin, :only => [:index, :deactivate, :enable]
before_filter :fetch_user, :only => [:show, :edit, :update, :destroy, :deactivate, :enable]