Fix welcome controller
This commit is contained in:
parent
dfcd531916
commit
5700991eb7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user