Kan. Const. Bill of Rights, § 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.