class PortfolioController < ApplicationController
  unloadable

  layout 'portfolio'

  PRIVATE_ACCESS = [
    :user_setup,
    :check_if_login_required,
    :check_password_change
  ]

  skip_before_filter *PRIVATE_ACCESS, :only => :index
  before_filter :public_access?, :only => :index

  helper :all

  def index
    @projects = Project.portfolio
  end

  protected
    def public_access?
      PRIVATE_ACCESS.map{ |v| send(v) }.all? unless Portfolio::Redmine.public_access?
    end

end

class PortfolioController < ApplicationController
  unloadable

  layout 'portfolio'

  helper :all

  def index
    @projects = Project.portfolio
  end

end

Revert "Re enable anonymous mode"
Revert "Re enable anonymous mode"

This reverts commit 3d88c55560f8905a7d131d829add6c4dfa2aa000.
