Kansas constitution
Bill of rights
Section 8

The right to the writ of habeas corpus shall not be suspended, unless the public safety requires it in case of invasion or rebellion.