Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] <web-client> master : Fix ensure_logout
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Wed, 15 Jul 2009 15:07:15 +0200
  • Message-id: <E1MR4Cy-0007d1-6J@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 12cbe49af0ab4e423ef3064188e3707b700ca597
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Wed Jul 15 15:07:15 2009 +0200

Fix ensure_logout
---
.../app/controllers/application_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/webclient/app/controllers/application_controller.rb
b/webclient/app/controllers/application_controller.rb
index 3d0fd3c..d47c060 100644
--- a/webclient/app/controllers/application_controller.rb
+++ b/webclient/app/controllers/application_controller.rb
@@ -27,7 +27,7 @@ class ApplicationController < ActionController::Base
end

def ensure_logout
- if not logged_in?
+ if logged_in?
flash[:notice] = "You must logout before you can login"
redirect_to root_url
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages