Check the legal basis.
Section 185 StPO generally requires accused persons not to be accommodated together with sentenced prisoners. Persons in custody for the first time or held in another institution under Section 183 paragraph 3 StPO must in any event be separated from sentenced prisoners. Co-accused persons may be separated where this is necessary to achieve the purposes of detention.