FEATURE: restrict admin access based on IP address

This commit is contained in:
Neil Lalonde
2014-09-04 18:50:27 -04:00
parent 1040a88389
commit ca5f361d0a
12 changed files with 118 additions and 10 deletions

View File

@ -27,7 +27,8 @@ module CurrentUser
end
def current_user
current_user_provider.current_user
c = current_user_provider.current_user
ScreenedIpAddress.block_login?(c, request.remote_ip) ? nil : c
end
private