Fix welcome controller

This commit is contained in:
Igor Zubkov 2011-12-24 03:48:32 +02:00
parent dfcd531916
commit 5700991eb7

View File

@ -8,7 +8,9 @@ module RedmineLandingPage
alias_method :index_without_landing_page, :index unless method_defined? :index_without_landing_page
def index
if User.current.logged? && !User.current.landing_page.empty?
if User.current.logged? &&
User.current.landing_page &&
!User.current.landing_page.empty?
redirect_to User.current.landing_page, :status => 302
else
index_without_landing_page