浏览代码

Fix get_bool -> get.

old-ruby
Ben Kurtovic 9 年前
父节点
当前提交
453ab37793
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/controllers/users_controller.rb

+ 1
- 1
app/controllers/users_controller.rb 查看文件

@@ -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


正在加载...
取消
保存