mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Move IpFilter class to Security namespace
This commit is contained in:
parent
0adb13ca30
commit
544170b530
10 changed files with 94 additions and 94 deletions
|
|
@ -298,12 +298,12 @@ class memberAdminModel extends member
|
|||
{
|
||||
if ($allow_list = ($allow_list === null) ? config('admin.allow') : $allow_list)
|
||||
{
|
||||
return Rhymix\Framework\IpFilter::inRanges(RX_CLIENT_IP, $allow_list);
|
||||
return Rhymix\Framework\Security\IpFilter::inRanges(RX_CLIENT_IP, $allow_list);
|
||||
}
|
||||
|
||||
if ($deny_list = ($deny_list === null) ? config('admin.deny') : $deny_list)
|
||||
{
|
||||
return !Rhymix\Framework\IpFilter::inRanges(RX_CLIENT_IP, $deny_list);
|
||||
return !Rhymix\Framework\Security\IpFilter::inRanges(RX_CLIENT_IP, $deny_list);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue