Don't check the ACL unless we're creating a new user
This commit is contained in:
parent
b3df1f12ee
commit
8eef66cee2
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue