Every agent has actually such authority as is defined by this chapter, unless specially deprived thereof by his principal, and has even then such authority ostensibly, except as to persons who have actual or constructive notice of the restrictions upon his authority.