summaryrefslogtreecommitdiff
path: root/app/controllers/account_controller.rb
blob: ee7cca481f9d7daf41518b2c46d45f892918681b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class AccountController < ApplicationController

  before_filter :require_registration_allowed
  before_filter :redirect_if_logged_in

  def new
    @user = User.new
  end

  protected

  def require_registration_allowed
    unless APP_CONFIG[:allow_registration]
      redirect_to home_path
    end
  end
end