31 $allowedIps = $this->scopeConfig->getValue(
32 self::XML_PATH_DEV_ALLOW_IPS,
33 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
36 $remoteAddr = $this->_remoteAddress->getRemoteAddress();
37 if (!empty($allowedIps) && !empty($remoteAddr)) {
38 $allowedIps = preg_split(
'#\s*,\s*#', $allowedIps,
null, PREG_SPLIT_NO_EMPTY);
39 if (array_search($remoteAddr, $allowedIps) ===
false 40 && array_search($this->_httpHeader->getHttpHost(), $allowedIps) ===
false
const XML_PATH_DEV_ALLOW_IPS
isDevAllowed($storeId=null)