protected function canViewOrder(Order $order)
    {
        return $this->httpContext->getValue(Context::CONTEXT_AUTH)
            && $this->isVisible($order);
    }
protected function canViewOrder(Order $order)
    {
        return $this->httpContext->getValue(Context::CONTEXT_AUTH)
            && $this->isVisible($order);
    }
protected function canViewOrder ( Order $ order ) { return $ this -> httpContext -> getValue ( Context :: CONTEXT_AUTH ) && $ this -> isVisible ( $ order ) ; }
Can view order

@param Order $order
@return bool
Can view order