Petitioner, a ward of the juvenile court for Los Angeles County, complains that she is unlawfully restrained of her liberty, in that she is denied the right of private consultation with her attorney to enable her tо prepare for her defense on a criminal charge. She therefore seeks by habeas corpus an order that will effectually safeguard such right. The allegations of her petition, the truth of which arе admitted by respondent, supplemented by admissions' in open court, establish the following state of facts: A complaint has been filed in the superior court of Los Angeles County charging pеtitioner with the commission of a felony, and her preliminary examination thereon is about to take place. She is now detained in Juvenile Hall pursuant to an order of the juvenile cоurt in and for that county. Respondent, who is the superintendent of Juvenile Hall, refuses to permit petitioner to consult with her attorney save in respondent’s presence or in the presеnce and hearing of some other third person whose presence is objectionable to petitioner, thereby depriving her of all opportunity to consult freely and frankly with her сounsel and preserve the sanctity of their confidential communications. A reasonable opportunity for consultation between petitioner and her attorney is necessary to enable the former to prepare for her hearing on the criminal complaint charging her *799 with a felony. Application to the superior court for relief having been deniеd, petitioner seeks a remedy here.
The respondent to the writ concedes, that, by denying to petitioner the right of private consultation with her counsel, she has been denied a right guaranteed her by the constitution, but contends—and this is the sole point urged in opposition to the writ—that habeas corpus is not the proper remedy. Respondent’s argument, as we understand it, is substantially this: Petitioner is lawfully confined in Juvenile Hall under a valid commitment issued out of the juvenile court; therefore, she cannot be discharged from custody; habeas corpus will lie only where the person on whose behalf the writ is sought is unlawfully imprisoned; ergo, so the argument runs, petitioner is not entitled to habeas corpus, since in any event she must remain in Juvenile Hall in the custody of respondent.
Respondent’s argument places too narrow limits upon the high prerogative writ of habeas corpus, the right wheretо is guaranteed by the constitution. By express statutory enactment, it may issue in all eases where the petitioner is unlawfully “restrained of his liberty,” as well as where he is unlawfully imprisoned. Section 1473 of the Penal Code provides: “Every person unlawfully imprisoned or restrained of his liberty, under any pretense whatever, may prosecute a writ of habeas corpus to inquire into the cause of such imprisonment or restraint.” The office of the writ is to afford the citizen a speedy and effective method of securing the removal of any unlawful restraint upon his *801 liberty; and the statute which confers the right has always been construed in favor of the liberty of the citizen.
It is ordered that respondent, Ianthe Densmorе, superintendent of Juvenile Hall, be, and she is hereby ordered and directed, upon request of petitioner or her counsel, and at all reasonable times, to permit petitioner to consult privately with her attorney in such place and under such circumstances as will afford reasonable opportunity for absolute privacy of consultation.
Thomas, J., and Weller, J., concurred.
