mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Do not apply site lock when called on the CLI
This commit is contained in:
parent
f983d9a496
commit
98b32a2572
1 changed files with 4 additions and 0 deletions
|
|
@ -1546,6 +1546,10 @@ class Context
|
|||
}
|
||||
|
||||
// Allow if the current user is in the list of allowed IPs.
|
||||
if (PHP_SAPI === 'cli')
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (Rhymix\Framework\Filters\IpFilter::inRanges(RX_CLIENT_IP, config('lock.allow')))
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue