fixed infitive redirect when not public

This commit is contained in:
Espen Antonsen 2011-01-12 16:37:14 +08:00
parent c71f7d49ba
commit a68c00ab5f

View file

@ -45,7 +45,7 @@ class ApplicationController < ActionController::Base
end
def check_public_access
require_user unless ENV['PUBLIC'] == 'true'
require_user if ENV['PUBLIC'] == 'false'
end
def current_user_session