ref: refs/heads/master
commit 12cbe49af0ab4e423ef3064188e3707b700ca597
Author: Klaus Kämpf
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@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org