diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -23,6 +23,10 @@ def authenticate unless session[:user_id] + flash[:notice] = 'You need to login' + if GraderConfiguration[SINGLE_USER_MODE_CONF_KEY] + flash[:notice] = 'You need to login but you cannot log in at this time' + end redirect_to :controller => 'main', :action => 'login' return false end