protected function authIps($userIp)
    {
        if (empty($this->ips)) {
            return true;
        }

        foreach ($this->ips as $ip) {
            if ($userIp === $ip) {
                return true;
            }
        }

        return false;
    }
protected function authIps($userIp)
    {
        if (empty($this->ips)) {
            return true;
        }

        foreach ($this->ips as $ip) {
            if ($userIp === $ip) {
                return true;
            }
        }

        return false;
    }
protected function authIps ( $ userIp ) { if ( empty ( $ this -> ips ) ) { return true ; } foreach ( $ this -> ips as $ ip ) { if ( $ userIp === $ ip ) { return true ; } } return false ; }
Returns true if user has IP to access area

@param string $userIp

@return bool
Returns true if user has IP to access area