Permalink
Browse files

Merge pull request #5 from martinvega/master

Cambio de página principal
  • Loading branch information...
2 parents f5bd7ff + 2231cc3 commit bab33d981880061c1ee52691353425405e659c27 @martinvega martinvega committed Aug 15, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 app/controllers/users_controller.rb
View
6 app/controllers/users_controller.rb
@@ -137,11 +137,7 @@ def create_session
auth_user.password == @user.password then
session[:last_access] = Time.now
session[:user_id] = auth_user.id
- if auth_user.admin?
- go_to = session[:go_to] || { :action => :index }
- else
- go_to = {:controller => :projects, :action => :index}
- end
+ go_to = {:controller => :projects, :action => :index}
session[:go_to] = nil
redirect_to go_to
else

0 comments on commit bab33d9

Please sign in to comment.