Defect #9999 » fix_double_open_session.diff
app/controllers/application_controller.rb (révision 250) | ||
---|---|---|
89 | 89 | |
90 | 90 |
# Sets the logged in user |
91 | 91 |
def logged_user=(user) |
92 |
reset_session |
|
92 |
if session.any? |
|
93 |
reset_session |
|
94 |
end |
|
93 | 95 |
if user && user.is_a?(User) |
94 | 96 |
User.current = user |
95 | 97 |
session[:user_id] = user.id |