There are three types of detention: security detention, judicial detention, etc. It is an administrative coercive measure, and close relatives of the parties can visit; criminal detention is a criminal coercive measure, and only lawyers entrusted by the parties or appointed by the court can visit. This is clearly stipulated in my country's Criminal Procedure Law, Civil Procedure Law, and Public Security Punishment Law. According to Article 28 of the "Detention Center Regulations": "While in custody, criminals may communicate with and meet with their close relatives with the consent of the case-handling agency and the approval of the public security agency" and may visit them. According to
Legal objectivity:
Article 34 of the "Criminal Procedure Law of the People's Republic of China"* * *The first time a criminal suspect is interrogated or taken compulsory measures by the investigation agency Starting from the date of investigation, you have the right to entrust a defender; during the investigation, you can only entrust a lawyer as your defender. The defendant has the right to entrust a defender at any time. When interrogating a criminal suspect or taking compulsory measures against him for the first time, the investigative agency shall inform him of the right to entrust a defender. The People's Procuratorate shall, within three days from the date of receipt of case materials transferred for review and prosecution, inform the criminal suspect of the right to entrust a defender. The People's Court shall, within three days from the date of accepting the case, notify the defendant of the right to entrust a defender. If criminal suspects or defendants request to entrust a defender while in custody, the people's court, people's procuratorate and public security organs shall promptly convey the request.