Przeglądaj źródła

Fix get_bool -> get.

old-ruby
Ben Kurtovic 9 lat temu
rodzic
commit
453ab37793
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      app/controllers/users_controller.rb

+ 1
- 1
app/controllers/users_controller.rb Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz