mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 18:02:15 +09:00
Fix #810 do not add current IP to sitelock whitelist automatically
사이트 잠금 상태에서도 관리자는 로그인할 수 있도록 변경되었으므로 더이상 관리자의 IP 주소를 강제로 추가해 줄 필요가 없음.
This commit is contained in:
parent
5e296e54e2
commit
141aabdaf7
6 changed files with 1 additions and 25 deletions
|
|
@ -622,14 +622,6 @@ class adminAdminView extends admin
|
|||
Context::set('sitelock_message', escape(Rhymix\Framework\Config::get('lock.message')));
|
||||
|
||||
$allowed_ip = Rhymix\Framework\Config::get('lock.allow') ?: array();
|
||||
if (!Rhymix\Framework\Filters\IpFilter::inRanges('127.0.0.1', $allowed_ip))
|
||||
{
|
||||
array_unshift($allowed_ip, '127.0.0.1');
|
||||
}
|
||||
if (!Rhymix\Framework\Filters\IpFilter::inRanges(RX_CLIENT_IP, $allowed_ip))
|
||||
{
|
||||
array_unshift($allowed_ip, RX_CLIENT_IP);
|
||||
}
|
||||
Context::set('sitelock_allowed_ip', implode(PHP_EOL, $allowed_ip));
|
||||
Context::set('remote_addr', RX_CLIENT_IP);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue