Do not apply site lock when called on the CLI

This commit is contained in:
Kijin Sung 2016-11-22 09:44:07 +09:00
parent f983d9a496
commit 98b32a2572

View file

@ -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;