From 8eef66cee2837ce5df84906dbcbf4c5a8df3bea2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 8 Feb 2012 22:35:13 +0000 Subject: [PATCH] Don't check the ACL unless we're creating a new user --- app/controllers/user_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 77370c311..1d86c0524 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -38,7 +38,7 @@ class UserController < ApplicationController else render :action => 'terms' end - elsif Acl.match(request.remote_ip, params[:user][:email].split("@").last).where(:k => "no_account_creation").exists? + elsif params[:user] and Acl.match(request.remote_ip, params[:user][:email].split("@").last).where(:k => "no_account_creation").exists? render :action => 'blocked' else session[:referer] = params[:referer] -- 2.43.2