diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb index badfd7e93..bb031c7b6 100644 --- a/app/controllers/settings_controller.rb +++ b/app/controllers/settings_controller.rb @@ -1,6 +1,6 @@ class SettingsController < ApplicationController def show @old_projects_url = nil - @old_projects_url = "https://www.trustie.net/users/#{current_user.try(:login)}/projects" if current_user.present? + @old_projects_url = "https://www.trustie.net/users/#{current_user.try(:login)}/projects" if User.current.logged? end end