Browse Source

Fix get_bool -> get.

old-ruby
Ben Kurtovic 9 years ago
parent
commit
453ab37793
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/users_controller.rb

+ 1
- 1
app/controllers/users_controller.rb View File

@@ -22,7 +22,7 @@ class UsersController < ApplicationController

allow_non_corp = AdminSetting.get_bool(:allow_non_corp)
if !allow_non_corp && !user.in_corp? && !user.admin?
corp_name = AdminSetting.get_bool(:corp_name)
corp_name = AdminSetting.get(:corp_name)
flash[:alert] = "You are not a member of #{corp_name}, and access to "\
"this site is disallowed for non-corp members."
redirect_to root_url and return


Loading…
Cancel
Save